saveWorkspaceEffect
in editor functionality should be split based on whether state update should be immediate or debounced
#1695
Labels
Describe the bug
Example error message: Error message:
Could not retrieve workspace d2cd0f4d-6a19-457f-835f-9edd2f3e06a0
Because of the way that currentWorkspaceState is updated in Recoil, changes made in <500ms are not captured. This is the intended behavior for changes involving text edits, such as editing the sub/sty/dsl files. However, other behaviors should capture all user inputs, such as duplicating workspaces, sharing/switching tabs, etc. We can accomplish this by splitting up the
saveWorkspaceEffect
inatoms.ts
to have both the current debounced version and an un-debounced version that can be triggered on demand. As part of this, we need to investigate whether Recoil allows multiple effects to be registered for one state object.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should be able to see each duplicated workspace
Screenshots
Desktop (please complete the following information if applicable):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: