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

After upgrading to react v18, components rendered through react-template-helper does not get latest value of ReactiveVar #399

Open
yash-indecab opened this issue Oct 19, 2023 · 0 comments
Labels

Comments

@yash-indecab
Copy link

Hello everyone,

We've recently upgraded to React v18 and also updated to latest version of react-template-helper and have encountered an issue that requires some attention.

In our previous setup with React 16, we used to pass ReactiveVars as props, and the .get() method reliably provided us with the updated value of the ReactiveVar. However, after transitioning to React 18, our components stopped rendering as expected. Notably, in React 16, we depended on componentWillReceiveProps, but in React 18, it appears that even UNSAFE_componentWillReceiveProps isn't getting triggered.

To help you better understand the problem, we've created a repository that reproduces this issue. You can find it here: Repo that reproduces this bug.

We would greatly appreciate any assistance or insights you can provide. Our aim is to resolve this issue and continue working effectively with React v18. Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants