React-admin: Data Refresh After component render in UseQuery of react-admin

Created on 8 Mar 2020  Â·  3Comments  Â·  Source: marmelab/react-admin

i ask my question on stackoverflow this link : [https://stackoverflow.com/questions/60575129/data-refresh-after-component-render-in-usequery-of-react-admin]
but i dont receive answer plz help me
i use useQuery for showing list item, i need to Button for Refresh my requests how i can use useRefresh for this work?

this is my Code:

const {data,total,loading,error} = useQuery({
  type: 'GET_LIST',
  resource: 'requests',
  payload: {
    pagination: { page: page, perPage: perPage },
    sort: { field: 'createdAt', order: 'DESC' },
    filter: {restaurants_id:restaurants_id,createdAt:date}
  }
});

All 3 comments

As explained in the react-admin contributing guide, the right place to ask a "How To" question, get usage advice, or troubleshoot your own code, is StackOverFlow - NOT this issue tracker.

So I'm closing this issue.

Dear in StackoverFlow i dont receive answer
how i receive my answer?

thanks and regards

On Mon, Mar 9, 2020 at 1:31 PM Francois Zaninotto notifications@github.com
wrote:

Closed #4489 https://github.com/marmelab/react-admin/issues/4489.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/marmelab/react-admin/issues/4489?email_source=notifications&email_token=ANJN3PAH7NFQXXTWI5U4YQLRGTAP7A5CNFSM4LD4F7LKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOXFPUUZQ#event-3110029926,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANJN3PFS4Y4NJX7S3KLJXLLRGTAP7ANCNFSM4LD4F7LA
.

This is an open-source project. If you absolutely need an answer, consider hiring a contractor (I recommend marmelab.com).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phacks picture phacks  Â·  3Comments

pixelscripter picture pixelscripter  Â·  3Comments

Dragomir-Ivanov picture Dragomir-Ivanov  Â·  3Comments

rkyrychuk picture rkyrychuk  Â·  3Comments

kikill95 picture kikill95  Â·  3Comments