react-component / react-component/slider
Error while using with Astro.js
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodeSandbox and reproduce the error using Astro.js with rc-slider and the client:load directive. Compare that behavior with client:only; done means the component renders and hydrates under client:load without the invalid element type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100