Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<DeleteButton undoable={false} /> in List does not refresh List #2425

Closed
wuxudong opened this issue Oct 12, 2018 · 3 comments
Closed

<DeleteButton undoable={false} /> in List does not refresh List #2425

wuxudong opened this issue Oct 12, 2018 · 3 comments

Comments

@wuxudong
Copy link

wuxudong commented Oct 12, 2018

Please do not submit support requests or "How to" questions here. For that, go to StackOverflow.

What you were expecting:

In List with <DeleteButton undoable={false} />, after user click delete, request sent to server, and item deleted from list.

What happened instead:

user click delete, request sent to server, but item still remains in the list.

record

Steps to reproduce:

add in /examples/simple/src/posts/PostList -> PostListActionToolbar section.

                    <PostListActionToolbar>
                        <EditButton />
                        <ShowButton />
                        <DeleteButton undoable={false} />
                    </PostListActionToolbar>

Related code:

insert short code snippets here

Other information:

Environment

  • React-admin version: master branch
  • Last version that did not exhibit the issue (if applicable):
  • React version:
  • Browser: Chrome
  • Stack trace (in case of a JS error):
@BartoGabriel
Copy link

I add an example online:
https://03w7o6j530.codesandbox.io/#/users

Code
https://codesandbox.io/s/03w7o6j530

@trsteel88
Copy link

I'm having the same issue.

@normanzb
Copy link

normanzb commented Jan 4, 2019

setting undoable={false} in edit view causes the same issue, seems the refreshView only fired in undo:

onSuccess: { refresh: true },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants