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

Add useRequest #25

Open
1 task
renatoruk opened this issue Jul 22, 2020 · 0 comments
Open
1 task

Add useRequest #25

renatoruk opened this issue Jul 22, 2020 · 0 comments

Comments

@renatoruk
Copy link
Contributor

renatoruk commented Jul 22, 2020

https://github.com/axios/axios#axiosconfig

  • the only parameter to useRequest is axios config object
  • useRequest is important for cases where we need to have authenticated request, but other hooks don't suit the response or request structure

Cases covered with useRequest

Open questions

  • do we need to update the redux store with it or we can just use the response directly?

Tasklist

  • research is updating store feasible in non JSON:API format? Can we store it only in the "meta" key and not update the entities part?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant