Open Fabiantjoeaon opened 2 months ago
I'm on Next.js v14.2.5 using the pages router
Hi @Fabiantjoeaon - sorry for the silcence, I somehow don't get an email on new issues, not sure what setting to adjust 🤔
Not exactly sure why this happens in your case, it's a bit delicate depending on the Nextjs version and order of components it seems.
For isntance, I've had this error happen when calling usePageTransition()
as a hook in the layout component outside the
Sorry for not having more ideas!
Hey! Thanks again for opening up your ecosystem of tools, this was just what I was looking for - as proper page transitions in React / Next.js with lifecycle hooks are far from trivial :)
I'm currently trying to implement this using Next.js like this:
I get this error however:
This happens in
PageWrapper.tsx
, I've tried the following, but to no avail:I've also tried changing
useEffect
touseIsoMorphicLayoutEffect
, but that won't help either.