solid-router icon indicating copy to clipboard operation
solid-router copied to clipboard

`clear` and `retry` on useSubmission does not work

Open snnsnn opened this issue 1 year ago • 1 comments

Describe the bug

Hi, I am not sure if I use the API correctly, but the clear and retry methods on the submission object does not work.

Clear resets the submission state but does not clear the input fields, if that is what is intended to do.

Retry does nothing, as the action callback is not invoked.

Please see the demo.

Your Example Website or App

https://stackblitz.com/edit/solidjs-templates-tgmzdcxu

Steps to Reproduce the Bug or Issue

I use the same logic from this example: https://docs.solidjs.com/solid-router/reference/data-apis/use-submission

Expected behavior

They should clear the form and retry submitting the form respectively.

Screenshots or Videos

No response

Platform

Using solidjs/router v^0.15.1

Additional context

No response

snnsnn avatar Jan 01 '25 22:01 snnsnn

This should be the issue : https://github.com/solidjs/solid-router/blob/50c5d7bdef6acc5910c6eb35ba6a24b15aae3ef6/src/data/action.ts#L56

sidati avatar Jan 19 '25 13:01 sidati