Using react-query's devtools as an example, we should be able to render the MSWToolbar all the time and have the library itself take care of nooping if NODE_ENV === 'production':
https://react-query.tanstack.com/devtools
By default, React Query Devtools 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.