-
Notifications
You must be signed in to change notification settings - Fork 12
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
Doesn't work with Next.js #58
Comments
Working with next-js (same stack as yours, one minor version up on Next and React. I managed to get the Babel integration working also. Initially I followed the steps explained here: and that worked.
// (guarantee useEffect deps are in sync with useWhatChanged) useWhatChanged(deps, 'a, b, c, d'); As mentioned, following the instructions here for the Babel installation in Next.js worked - note, you'll need to restart Node to get the Babel config to load. |
That code you've provided as an example here isn't using the babel plugin though so is a little confusing. That would work without the plugin as it's using the useWhatChanged direct call. The babel plugin allows you to use I can confirm that I have it working using the config provided in the linked repo though. |
Stack:
"next": "^13.1.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-redux": "^7.2.0"
The text was updated successfully, but these errors were encountered: