Skip to content

[BUG] Make useForm success redirect optional #6934

@pcfreak30

Description

@pcfreak30

Describe the bug

if (!isPessimistic && !isAutosave) {

if (isPessimistic && !isAutosave) {

It is assumed that on success you want to always redirect. This should be made an opt-out. I use refine as a data abstraction layer and this is forcing a redirect after submitting a dialog form, away from the current page, which is not wanted.

Steps To Reproduce

n/a

Expected behavior

Don't redirect on success.

Packages

  • @refinecore/dev

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions