Page doesn't re-render after navigation in Next 13
sergeyzwezdin opened this issue · 12 comments
Steps to reproduce:
- Repo: https://github.com/sergeyzwezdin/nextjs-overmind/tree/master/nextjs-overmind-test
- Run the app (
npm run dev
) - Open how page, trigger state change - the page reflects the changes
- Navigate to another page, then navigate back
- Try to trigger state change -> state is changed, but page is not going to be re-rendered
- Once I trigger re-render manually, it appears to work again.
Confirmed: Issue appears after migrating to React 18.
Confirmed: Issue appears after migrating to React 18.
Did you try out the React 18 fix from Christian in #560?
@henri-hulski not yet, how to do that?
@sergeyzwezdin did you found any solutiion i have similar problem , i have createed next app and counter state when i click in incrment button it doesn't re render the app ?
Actually the fix was published a few days ago in next. Try to install next and it should work.
next is currently broken due to dependbot fun on my part - I'll be fixing it up tonight/tomorrow. Then give it a try.
@grandevel Hey Dan did you manage to fix it ?
@grandevel @christianalfoni could we do another release with #560?
Confirmed overmind doesn't currently work with react 18 and next.js.
Either that or archive the project completely.
It doesn't even build locally with all the dependency updates
Update: it was a problem with #553, disabling strict mode makes it work for now
I was actually wrong. The React 18 fix was already released with overmind 28.0.2
and overmind-react 29.0.2
.
So if you're using these packages it's probably a different issue.
Should be solved in #586.
Please reopen if there's still a problem.