Skip to content

Conversation

@eokoneyo
Copy link

@eokoneyo eokoneyo commented Mar 1, 2024

Improvement

When sveltris is used to render a svelte component within react, if it happens that in the parent component that renders the svelte component multiple re-renders occur for any specific reason in the current implementation after the first render the value of svelteComponentRef.current becomes stale, and as such the component will not get rendered.

This proposed change set makes it such that multiple re-renders are accounted for, by updating the value for the target of the svelte mount to always point to the current wrapper dom node.

@vercel
Copy link

vercel bot commented Mar 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sveltris ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 9, 2024 4:21am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant