You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a beforeChange Collection hook and updating fields it updates them on the server side but the client side does not see the update before you do a full page refresh.
Create a new test record and fill out the title, test1 and test2 fields with "something something" and click save. This will update on the client side on creation and it should show "newdata".
Now try and update the same record with new values "something123" and it should update the fields to "newdata" but it does not - only after a page refresh.
Which area(s) are affected? (Select all that apply)
Fixes#9882 and #9691
In 2.0, we would accept data coming back from an update operation and
then reflect those changes in UI.
However, in 3.0, we did not do that anymore - meaning you could change a
document with hooks in `beforeChange` or `afterChange`, but then not see
the changes made on the server.
This PR updates the way that `mergeServerFormState` works, and adds a
property to optionally allow values from server form state - which can
then be used in the `onSuccess` form handler which may need to define
new field values.
Describe the Bug
When creating a beforeChange Collection hook and updating fields it updates them on the server side but the client side does not see the update before you do a full page refresh.
Asked in discord community help: https://discord.com/channels/967097582721572934/1315968241658494988
There's been a similiar issue as of version 3.2.2: (#9423) which should have solved in 3.2.2 but it doesn't seem so.
I've tried 3.4, 3.3, 3.2.2 - still the same outcome.
In the repository link that reproduces this issue I've used version 3.5 and it also gives the same outcome.
Link to the code that reproduces this issue
https://github.com/Sibbern/beforechange-hook-bug
Reproduction Steps
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
The text was updated successfully, but these errors were encountered: