Skip to content
Snippets Groups Projects
Commit 3a0885f1 authored by Mofei Zhang's avatar Mofei Zhang
Browse files

[compiler][playground] Upgrade to Next 15.2.0-canary.64

Upgrade compiler playground to use the newest nextjs release, which includes react compiler transform pipeline optimizations https://github.com/vercel/next.js/pull/75676/.

Also made a drive-by fix to avoid the error `Cannot update a component ('Router') while rendering a different component ('StoreProvider'). To locate the bad setState() call inside 'StoreProvider', follow the stack trace as described in https://react.dev/link/setstate-in-render`. The bad setState came from `history.replaceState({}, '', `#${hash}`);`.

Prior to this, playground ran side effects in a reducer (i.e. during render). These have now been moved an effect.
parent fcb4e0f1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment