Respect initialData in usePayloadAPI during development mode #15474
Replies: 3 comments
|
I’d be happy to contribute a pull request to address this issue if your team is occupied with other priorities. Thank you for your outstanding work! |
|
Hi @alexortizl, sorry for the extreme delay in getting a team response here. This behavior is expected in development mode due to the way We could consider adjusting the hook to respect I'm going to convert this to a feature request and update the title. |
|
I opened draft PR #17404. It preserves |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Feature
usePayloadAPIshould respect initialData on first render in development mode, not just in production, while still fetching fresh data asynchronously.Initial Issue Report
All reactions