Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hot reloading components with keys #2886

Merged
merged 7 commits into from
Aug 28, 2024

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Aug 26, 2024

We were adding keys from component to the component literal pool which caused indexing issues because keys don't show up as props

Fixes #2881

@ealmloff ealmloff added bug Something isn't working rsx Related to rsx or the dioxus-rsx crate hot-reload Related to the hot reload crate labels Aug 26, 2024
@rogusdev
Copy link
Contributor

rogusdev commented Aug 26, 2024

Hmm, I cherry picked these onto my local and it did not fix #2881

@ealmloff ealmloff marked this pull request as draft August 26, 2024 16:04
@ealmloff ealmloff marked this pull request as ready for review August 26, 2024 16:11
@ealmloff
Copy link
Member Author

Hmm, I cherry picked these onto my local and it did not fix #2881

I reverted a bit too much while fixing tests. Should be fixed now

@rogusdev
Copy link
Contributor

Ha, now it's inverted: falsetrue

@ealmloff
Copy link
Member Author

Should be fixed now:
Screenshot 2024-08-26 at 11 49 46 AM

@rogusdev
Copy link
Contributor

Yeah, works for me, thanks! (Including in my actual project)

@ealmloff ealmloff merged commit 4676171 into DioxusLabs:main Aug 28, 2024
15 checks passed
@ealmloff ealmloff deleted the fix-hot-reload-component-key branch August 28, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hot-reload Related to the hot reload crate rsx Related to rsx or the dioxus-rsx crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Component with key attribute does not pass a ReadOnlySIgnal<bool> attribute properly
3 participants