Conversation
|
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/statelyai/xstate-viz/DGqQ4WaJU9dBL1UB45CxiQhMgac1 |
| }, | ||
| }), | ||
| clearSessionData: assign({ | ||
| clearSessionData: assign((ctx) => ({ |
There was a problem hiding this comment.
hm, this might be worth investigating - ideally this unused argument/function shouldn't be needed
There was a problem hiding this comment.
Btw. the event here is typed as never but that is incorrect - this action is an exit action used in the active state and this should be able to receive at least DRAG_SESSION_STOPPED
| setPositionAfterSourceChanged: 'SOURCE_CHANGED'; | ||
| assignZoomAfterFitToContent: 'FIT_TO_CONTENT'; | ||
| assignViewBoxAfterFitToContent: 'FIT_TO_CONTENT'; | ||
| persistPositionToLocalStorage: string; |
There was a problem hiding this comment.
this is definitely wrong, cause like we've discussed - this should always be a union of string literals (or a single string literal)
There was a problem hiding this comment.
Yep, this would be different if I did it with the extension now


No description provided.