payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
27.66k stars 1.72k forks source link

fix: prioritize server rendered Actions in ActionsProvider #9379

Closed JarrodMFlesch closed 1 day ago

JarrodMFlesch commented 1 day ago

What?

Actions were not being re-rendered when router.refresh was called. Discord Link

Why?

They were stored in state and the state was persisting.

How?

Spread the stateful actions and the Actions from props on top of the client state actions.

github-actions[bot] commented 1 day ago

🚀 This is included in version v3.0.2