You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Is seems like when control components are used inside of the overlay scrollbars component, I can get a weird double render effect when a signal updates related to the control component. In the linked example, I just used a <Show /> for simplicity but I have noticed this with <For /> too.
ERROR: You will see 2 render console logs but should only have one (the initial render should have the signal as false to not render the content)
Comment out the scrollbars component
Reload the preview
You will see 1 render console log as expected
You also only get one render log if you comment out the <Show /> but I should be able to use the <Show /> inside the scrollbars without double renders.
Expected behavior
Things in the scrollbars component not not re-render unnecessarily.
Describe the bug
Is seems like when control components are used inside of the overlay scrollbars component, I can get a weird double render effect when a signal updates related to the control component. In the linked example, I just used a
<Show />
for simplicity but I have noticed this with<For />
too.To Reproduce
Steps to reproduce the behavior:
You also only get one render log if you comment out the
<Show />
but I should be able to use the<Show />
inside the scrollbars without double renders.Expected behavior
Things in the scrollbars component not not re-render unnecessarily.
Examples
https://stackblitz.com/edit/overlayscrollbars-solid-iavjenex?file=package.json,src%2FApp.tsx
Environment
Additional context
Not sure if I am doing something wrong with SolidJS here but I think the SolidJS code is good.
The text was updated successfully, but these errors were encountered: