-
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
Feature: use request #39
base: feat/get-meta
Are you sure you want to change the base?
Conversation
JuraJuki
commented
Aug 25, 2020
- add use request hook
- addresses this issue Add useRequest #25
…o feat/attributes-obj-removal
Feature: extract tsdx-readme
…o feat/attributes-obj-removal
…esMapper, fix tests
Feature: attributes {} obj removal
Fix: change package-lock.json to yarn.lock
…ntGeneratedEntity
Feature: fix attributes {} if __clientGeneratedEntity only attribute
} from "axios"; | ||
import { useState } from "react"; | ||
|
||
export const useRequest = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hook seems nice, I think it'll really help in some scenarios such as upload for example.
I have an idea on how to get around the issue of having to pass axiosInstance
in every call.
We could use useContext for this.
But, for this we'll need to have aardvark instantiated in the root of the application and then passed to a AardvarkProvider
(which is currently in test-utils, but I think that the provider should be exported and required for implementation)
Fix: page params camelCase syntax
Co-authored-by: Renato Ruk <[email protected]>
Fix: json api reducer - delete request
Fix: nested attributes {}
# Conflicts: # src/test-utils/configureStore.ts # src/tests/deleteHookTests.test.tsx # src/tests/patchHookTests.test.tsx