-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(auto-sync): Add an AutoSyncProvider and trigger a sync changes when needed #1284
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
eaa78ac
to
627ef87
Compare
627ef87
to
70d9a10
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useActionQueue and AutoSync look very good
collisionPadding={280} | ||
trigger={ | ||
<Box padding={{ bottom: 24 }}> | ||
{autoSyncStatus === "failed" || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible alternate syntax: ["failed", "sync", "syncing"].includes(autoSyncStatus)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood
loggedIn = isOnline && authStatus === AuthStatus.AUTHORIZED, | ||
} = args; | ||
|
||
console.log("1. Just calling syncChanges"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed, console.log for QA on the alpha
packages/slice-machine/src/features/sync/components/AutoSyncStatusIndicator.tsx
Outdated
Show resolved
Hide resolved
70d9a10
to
156c971
Compare
cc80883
to
343c771
Compare
0877fcb
to
42e3c71
Compare
42e3c71
to
16300ac
Compare
16300ac
to
04100b9
Compare
Context
The Solution
unSyncChanges
are created (not perfect but the goal was to improve it still)Changes
item linkgetLegacySliceMachineState
because it's the same code as "getState", easier for the future removal of getStateImpact / Dependencies