You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an object that describes a diagram that is rendered in a WYSIWYG editor. I use one signal to track the diagram data. When the diagram is edited, the signal is updated, and when the signal is updated (e.g. loading a diagram), the editor is updated. I am looking for an elegant solution that doesn't 'boomerang' after every update (e.g. the signal updates after an edit, but this looks similar to loading a new diagram, and hence the editor is updated twice for every edit). Ideally there should be a signal with an 'upstream' and a 'downstream' get/set. When the upstream sets, the downstream is set automatically, but the upstream is not set again. Likewise, if the downstream sets, the upstream sets. The two are always in sync, but either 'side' can take the lead by dictating a new value.
Is there a way to implement something like this in Solid?
This discussion was converted from issue #2077 on February 20, 2024 17:31.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have an object that describes a diagram that is rendered in a WYSIWYG editor. I use one signal to track the diagram data. When the diagram is edited, the signal is updated, and when the signal is updated (e.g. loading a diagram), the editor is updated. I am looking for an elegant solution that doesn't 'boomerang' after every update (e.g. the signal updates after an edit, but this looks similar to loading a new diagram, and hence the editor is updated twice for every edit). Ideally there should be a signal with an 'upstream' and a 'downstream' get/set. When the upstream sets, the downstream is set automatically, but the upstream is not set again. Likewise, if the downstream sets, the upstream sets. The two are always in sync, but either 'side' can take the lead by dictating a new value.
Is there a way to implement something like this in Solid?
Beta Was this translation helpful? Give feedback.
All reactions