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

no need to unmount on reconnect #886

Merged
merged 1 commit into from
Jan 24, 2023
Merged

no need to unmount on reconnect #886

merged 1 commit into from
Jan 24, 2023

Conversation

rmorshea
Copy link
Collaborator

@rmorshea rmorshea commented Jan 24, 2023

closes: #760

I was unable to get preact working with the new React createRoot API. We can handle that in a follow-up issue. This narrowly focuses on removing an unnecessary unmount call on reconnect.

Checklist

Please update this checklist as you complete each item:

  • Tests have been included for all bug fixes or added functionality.
  • The changelog.rst has been updated with any significant changes.
  • GitHub Issues which may be closed by this Pull Request have been linked.

@rmorshea rmorshea marked this pull request as ready for review January 24, 2023 20:16
@rmorshea rmorshea merged commit 6dfa5b5 into main Jan 24, 2023
@rmorshea rmorshea deleted the no-unmoun-on-reconnect branch January 24, 2023 21:03
@Archmonger
Copy link
Contributor

I think a consequence of this change is that now stale event handlers can stay within the client.

This exception occurs if I restart the webserver while keeping an IDOM tab open:

2023-01-28T23:57:45-0800 | INFO | Ignored event - handler '3d35445264fb4d79a821e59f5961fc43' does not exist or its component unmounted

@rmorshea
Copy link
Collaborator Author

yup, that sounds right

@Archmonger
Copy link
Contributor

I don't think this is an intended though, since it silently breaks all event handlers on reconnect.

Can we potentially refresh all handlers within the client on reconnect?

@rmorshea
Copy link
Collaborator Author

oh, i was agreeing that it sounds like a bug.

rmorshea added a commit that referenced this pull request Feb 1, 2023
rmorshea added a commit that referenced this pull request Feb 1, 2023
* remove upper bound

* revert #886 + add test + misc

* changelog entry

* changes for latest black
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.

Do Not Unmount Old View On Reconnect
2 participants