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

feat: add DevTools hook #2016

Merged
merged 11 commits into from
Jun 28, 2022
Merged

feat: add DevTools hook #2016

merged 11 commits into from
Jun 28, 2022

Conversation

koba04
Copy link
Collaborator

@koba04 koba04 commented Jun 7, 2022

Fixes #2003

This adds a DevTools hook to inspect DevTools middleware.
SWR has to expose the React instance to the DevTools to avoid a multiple React instance error in the DevTools middleware.

I've also worked on the DevTools side at koba04/swr-devtools#55

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 7, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9def180:

Sandbox Source
SWR-Basic Configuration
SWR-States Configuration
SWR-Infinite Configuration
SWR-SSR Configuration

@koba04 koba04 changed the title WIP: DevTools hook feat: add DevTools hook Jun 27, 2022
@koba04 koba04 marked this pull request as ready for review June 27, 2022 15:17
@shuding shuding merged commit 118e881 into vercel:main Jun 28, 2022
@shuding
Copy link
Member

shuding commented Jun 28, 2022

Perfect, thank you!

@koba04
Copy link
Collaborator Author

koba04 commented Jun 28, 2022

Thank you!

@koba04 koba04 deleted the devtools-hook branch June 28, 2022 15:18
@koba04 koba04 mentioned this pull request Aug 5, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global middleware for DevTools
2 participants