Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
},
"packageManager": "yarn@3.6.3",
"engines": {
"node": ">=18"
"node": ">=20"
},
"dependencies": {
"@actions/core": "^1.10.0"
}
}
}
15 changes: 8 additions & 7 deletions packages/core/src/projects/initialiseProjectState.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// import type {Studio} from '@theatre/studio/Studio'
import delay from '@theatre/utils/delay'
import type Project from './Project'
import type {OnDiskState} from '@theatre/core/types/private/core'
import {globals} from '@theatre/core/globals'
import {val} from '@theatre/dataverse'
import type {$____FixmeStudio} from '@theatre/core/types/public'
import type { OnDiskState } from '@theatre/core/types/private/core'
import { globals } from '@theatre/core/globals'
import { val } from '@theatre/dataverse'
import type { $____FixmeStudio } from '@theatre/core/types/public'

type Studio = $____FixmeStudio

Expand Down Expand Up @@ -32,7 +32,7 @@ export default async function initialiseProjectState(
(p: $____FixmeStudio) => p.coreByProject[projectId],
{
lastExportedObject: null,
loadingState: {type: 'loading'},
loadingState: { type: 'loading' },
},
)

Expand All @@ -49,6 +49,7 @@ export default async function initialiseProjectState(
useBrowserState()
} else {
if (
onDiskState.revisionHistory.length > 0 &&
browserState.revisionHistory.indexOf(onDiskState.revisionHistory[0]) ==
-1
) {
Expand All @@ -60,7 +61,7 @@ export default async function initialiseProjectState(
}

function useInitialState() {
studio.transaction(({stateEditors}: $____FixmeStudio) => {
studio.transaction(({ stateEditors }: $____FixmeStudio) => {
stateEditors.coreByProject.historic.setProjectState({
projectId,
state: {
Expand All @@ -79,7 +80,7 @@ export default async function initialiseProjectState(
}

function useOnDiskState(state: OnDiskState) {
studio.transaction(({stateEditors}: $____FixmeStudio) => {
studio.transaction(({ stateEditors }: $____FixmeStudio) => {
stateEditors.coreByProject.historic.setProjectState({
projectId,
state,
Expand Down