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 a use case where i need some external context passed into a NodeViewRenderer instance. i think i just need to modify the SvelteNodeViewRenderer to take in an additional props object. Would be happy to submit a pr if you guys would like!
thanks,
Alex
The text was updated successfully, but these errors were encountered:
I think this is now easier than ever to implement, after merging the migration to Svelte 5, as you can just pass a deep reactive object to the component. As for the code example, maybe something like:
And the components receives the extra prop as-is. It even comes with free reactivity, as any changes to the extra state will update the component automatically (this can also be achieved in Svelte 4 with a store).
i have a use case where i need some external context passed into a NodeViewRenderer instance. i think i just need to modify the SvelteNodeViewRenderer to take in an additional props object. Would be happy to submit a pr if you guys would like!
thanks,
Alex
The text was updated successfully, but these errors were encountered: