New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use form load initial values #1356
Conversation
Previously this function made the assumption that loadInitialValues should only be run if the cms is enabled. This is presumptious. If you want to not run this function when the cms is enabled then you should make that check in your own code
…en cms is disabled
…t run when cms is disabled
Modified PackagesThe following packages were modified by this pull request:
|
Related to #1155 |
The
useForm
hook was making a weird assumption thatloadInitialValues
should never execute if the CMS is disabled. This PR undoes that assumption and pushes the responsibility to the client. If a developer does not want to make a request in prod, then it's the their responsibility to make sure theloadInitialValues
they define works that way.