-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding Request Guards in buttons that do requests #83
Comments
Admin page:
Coordinator page:
Reviewer:
Feel free to extend this list if you find something that should have a request guard of some kind |
I'm curious what you mean by the preexisting state "isLoading" of the service methods. |
Nice list! See this https://github.com/feathersjs-ecosystem/feathers-redux#shape-of-the-store |
How exactly would I access this field |
Currently you are already doing it using
`useSelector`
If you take a look at the redux dev tools especially the chart, you will
that... you also see the log that are changing also with the state
difference
…On Wed, Feb 3, 2021 at 9:59 PM MouseAndKeyboard ***@***.***> wrote:
Nice list! See this
https://github.com/feathersjs-ecosystem/feathers-redux#shape-of-the-store
look at this very carefully for the isLoading.
How exactly would I access this field
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#83 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKSVXXJDUIVSMXDZL4MHD3TS5FJCTANCNFSM4WWFRVEA>
.
|
Further to #82, it would be recommended that there are request guards that prevents a user to click the same button twice. The effect of pressing the button twice means that it will send 2 requests in the server, when there are only supposed to be 1.
Tip:
Use the existing state "isLoading" of the service methods. With that property, disable the button or whatever is requesting
The text was updated successfully, but these errors were encountered: