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
This only works once if you have a callback on use:enhance and submits a form. After submitting the form multiple times, the subscribe callback isn't triggered.
<formmethod="POST"use:enhance={() => {
// If adding use:enhance without this callback, it worksreturnasync ({ result }) => {
awaitapplyAction(result);
};
}}
>
<button>Submit</button>
</form>
Describe the bug
When the $app/state module was added, a regression happened in
$app/stores
, breaking subscribing to the old page store there. This is the gist:This only works once if you have a callback on
use:enhance
and submits a form. After submitting the form multiple times, the subscribe callback isn't triggered.Reproduction
https://github.com/ciscoheat/apply-action-problem
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: