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
I am getting an error while using rc-slider with Astro.js
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
The issue is only happening if I use the client:load directive from astro, which initially renders the component on server and then hydrates it on the client. Its working fine if client:only is used
I'm guessing that the root cause might be because of forwardRef.
I just forked the repo and exposed another named export without forwardRef and it's working.
I can raise a PR if you're open to the fix
I am getting an error while using rc-slider with Astro.js
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
The issue is only happening if I use the
client:load
directive from astro, which initially renders the component on server and then hydrates it on the client. Its working fine ifclient:only
is usedLink to CodeSandbox
The text was updated successfully, but these errors were encountered: