Post

Nice! If you don't want to deal with the bottom right overlay, I just pushed 1.0.4 where you can use `import { RenderScanObserver } from 'svelte-render-scan';` to just get the highlighting without the icon, or you can pass <RenderScan hideIcon={true} /> prop for the same effect.

thanks! I think the Icon is actually super-helpful for Storybook in particular (since it's an SPA). I just extended my example so that svelte-render-scan is only displayed when &debug query param exists. And initial state is set to off (here I had to provide a fallback false - let me check 1.0.4)

Cool, let me know if something doesn't work well! FYI Right now if you toggle the switch at least once it writes the last saved value to localStorage, this is useful b/c otherwise every full reload will reset it to initial setting. If useful I could add `persist={boolean}` prop to toggle behavior.

Ahhhh! Now that makes sense. Yeah, opt-in to localStorage or making the fact that it persists to localStorage explicit in the first part of the documentation would be great! I think I personally would prefer the opt-in approach because I wouldn’t even expect the localStorage convenience 😂

I'd be more than happy to! I also extended my use case a bit, so that the wrapper grabs a param (debug) from the URL and passes it as a props. While the Storybook router purges the param from the url, the state is preserved! Neat! bsky.app/profile/fubi...

Ilja@fubits.dev

thanks! I think the Icon is actually super-helpful for Storybook in particular (since it's an SPA). I just extended my example so that svelte-render-scan is only displayed when &debug query param exists. And initial state is set to off (here I had to provide a fallback false - let me check 1.0.4)

@fubits.dev If you integrate this into the toolbar then you should be able to use the `<RenderScanObserver />` component directly. Just render/don't render it depending on on/off state.

@reinhold.is this 👆 was my decorators-for-Svelte example that I mentioned at the summit. I couldn’t find documentation for decorators in CSF but I think there were some examples in an issue or so, and that’s how I figured it out.