Skip to content

Conversation

@ealmloff
Copy link
Member

@ealmloff ealmloff commented Jul 7, 2025

We don't allow the type of hooks to change after they are first set because that is usually caused by breaking the rules of hooks. However, during hot patching it can be a valid change. This PR allows changing the type of hooks by run the new initialization closure after the first hot patch

Fixes #4346

@ealmloff ealmloff requested a review from a team as a code owner July 7, 2025 16:13
@ealmloff ealmloff added bug Something isn't working core relating to the core implementation of the virtualdom subsecond labels Jul 7, 2025
@jkelleyrtp jkelleyrtp merged commit 892e154 into DioxusLabs:main Jul 23, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core relating to the core implementation of the virtualdom subsecond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic during hot reload

2 participants