Closed frenzzy closed 1 week ago
Latest commit: 2363a0250991037e5ae4cc153291fb874ff9ffe3
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Oh right.. I missed moving this all the way across when i added .error
Ok I have a new fix for this issue. I do want to remind you though that throwing errors in actions is not a recommended approach in general because you lose typescript support. But now at least it works properly.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Currently, when an error is thrown from the server function, the client-side submission logic and server-side init from flash logic behave differently:
Error appears in
submission.error
when not relying on flash.What is the new behavior?
Consistent behavior of
submission.error
for the init from flash case. Error is insubmission.error
when an error is thrown from the server function.Other information
Link to the thread in Discord with additional details