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

How to Freeze component but prevent from unmounting ? #27

Open
deepanshu770 opened this issue Sep 26, 2022 · 1 comment
Open

How to Freeze component but prevent from unmounting ? #27

deepanshu770 opened this issue Sep 26, 2022 · 1 comment

Comments

@deepanshu770
Copy link

deepanshu770 commented Sep 26, 2022

I only want to hide the component but react-freeze unmount it everytime freeze prop changes.

@deepanshu770 deepanshu770 changed the title How to Freeze component but prevent from unmounting How to Freeze component but prevent from unmounting ? Sep 26, 2022
@artola
Copy link

artola commented Nov 23, 2022

My component triggers componentWillUnmount when it is suspending.
This happens with class component while the equivalent function component with useEffect and no dependencies, works fine.
Is it possible to avoid it? some workaround?

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

No branches or pull requests

2 participants