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 component remount on dev #223

Closed
wants to merge 1 commit into from
Closed

Conversation

amosjyng
Copy link
Contributor

On dev (but not on prod), TracePage is unmounted and remounted, but isMounted.current stays false and the trace tree never renders. This appears to be due to React.StrictMode, as seen in this other bug on another project: apollographql/apollo-client#6037

On dev (but not on prod), TracePage is unmounted and remounted, but isMounted.current stays false and the trace tree never renders. This appears to be due to React.StrictMode, as seen in this other bug on another project: apollographql/apollo-client#6037
@github-actions
Copy link

github-actions bot commented Jan 19, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@amosjyng
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@alexmojaki
Copy link
Contributor

Thanks for the contribution! I didn't know this was related to strict mode, that may be useful information.

We're aware of this problem, and @lslunis is working on a fix, although maybe we should be updating the README in the meantime about the dev server.

Unfortunately I've tried the same fix, and while it does help, I quickly noticed another similar issue: #150 (comment) We're working on a longer term solution that fetches these files more robustly without using refs.

@amosjyng
Copy link
Contributor Author

Ah interesting! Good luck, thanks for the response :)

@amosjyng amosjyng closed this Jan 19, 2023
@alexmojaki alexmojaki mentioned this pull request Jan 26, 2023
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.

2 participants