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

Bonus Step 5 - Move api client into Context #9

Open
wants to merge 25 commits into
base: 04-todos
from

Conversation

Projects
None yet
1 participant
@danieltott
Copy link
Owner

commented May 30, 2019

Instead of importing our API client directly, we can use Context and a custom hook to provide access to the API client directly to components. This allows us to do some cool stuff, like providing a special Provider inside Storybook components that replaces some async functionality for instance.

@danieltott danieltott changed the title Bonus Step 6 - Move api client into Context Bonus Step 5 - Move api client into Context May 30, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.