Skip to content

chore(site): add react query dev tools #11293

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

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

Kira-Pilot
Copy link
Member

Learn more about React Query devtools here
They are excluded from production builds
https://www.loom.com/share/c8632995351a408091e41cd948645335?sid=8c482c12-460b-4bc5-afb1-b423ca3bba4b

@Kira-Pilot Kira-Pilot requested a review from Emyrk December 20, 2023 01:01
@Kira-Pilot Kira-Pilot changed the title chore(site): added react query dev tools chore(site): add react query dev tools Dec 20, 2023
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great addition! I'm wondering if we want to have this bundled into the production build 🤔. Probably dynamically import this module only on development is the best approach.

@Kira-Pilot
Copy link
Member Author

@BrunoQuaresma great point. By default, they are only included in bundles when process.env.NODE_ENV === 'development', so you don't need to worry about excluding them during a production build.

@Kira-Pilot Kira-Pilot merged commit 20dff2a into main Dec 20, 2023
@Kira-Pilot Kira-Pilot deleted the react-query-tools/kira-pilot branch December 20, 2023 15:08
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants