Replies: 2 comments
-
|
Unfortunately this is expected for a little while, and there isn't a great way to remove it at the library level. It's important that all of our users take note of this upcoming breaking change and add tree-shaking to their applications using this guide. You could put My apologies for the inconvenience its causing. |
Beta Was this translation helpful? Give feedback.
-
Suppressing Console Warnings in DevelopmentImplementationStep 1: Create the Suppression UtilityAdd this function to your utilities file (e.g., const suppressJotaiDevtoolsWarnings = () => {
const originalWarn = console.warn;
console.warn = (...args) => {
if (args[0]?.includes?.("[jotai-devtools]")) {
return;
}
originalWarn(...args);
};
};
export { suppressJotaiDevtoolsWarnings };Step 2: Apply in Development OnlyIn your main entry file (e.g., import { suppressJotaiDevtoolsWarnings } from "./utils";
// ... other code ...
if (import.meta.env.DEV) {
suppressJotaiDevtoolsWarnings();
}
// ... rest of your app initialization ... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using vite (tanstack start) and have wrapped my components as mentioned in the README. I'm receiving this warning every time I visit a route in my server console during development, which is cluttering my console.
Beta Was this translation helpful? Give feedback.
All reactions