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'm using shadow-cljs and re-rendering on file save. Is there a way to preserve component state between renders?
I've tried a few things without luck:
Writing a mixin that stores any atoms in state. The problem is that it's hard to get a unique key for a component that persists between renders
Wrapping the render with a functional component that contains a ref. I think React maintains this ref if fast-refresh is enabled, but that doesn't seem to work here.
Any other ideas on generating an id or signature that is unique to a component's position in the render tree would be appreciated!
The text was updated successfully, but these errors were encountered:
I'm using shadow-cljs and re-rendering on file save. Is there a way to preserve component state between renders?
I've tried a few things without luck:
Any other ideas on generating an id or signature that is unique to a component's position in the render tree would be appreciated!
The text was updated successfully, but these errors were encountered: