core: Can't assign "props" to "state"
Open
bug
core
- Dominant language
- TypeScript
- Stars
- 14.4k
- Forks
- 671
- PR merge metrics
- No merged PRs in 30d
Description
we need a way to assign `props` to `state`
https://github.com/BuilderIO/mitosis/blob/main/docs/gotchas.md#cant-assign-params-to-state
we can either inject the workaround into onMount or for some generators
Contributor guide
Research direction
Start with docs/gotchas.md at “Can’t assign params to state” to understand the current limitation and workaround. Then inspect the compiler’s generator handling and the onMount path to determine whether the behavior belongs in generated output or a shared transformation. Done means props can be assigned to state without requiring the documented workaround, with the affected generators covered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100