Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Reactivity #853

Merged
merged 68 commits into from
Jun 29, 2023
Merged

Conversation

samijaber
Copy link
Contributor

@samijaber samijaber commented Oct 27, 2022

Description

  • add TypeScript project analysis to mitosis build

  • add Signal reactivity in codebase for useState and useContext via {reactive: true} param

    • add plugin to all generators to replace Signal types in output to correct type (e.g. Writable in svelte)
    • add plugin to all generators to replace .value accessor in each output to correct accessor (e.g. $ prefix in svelte)
  • keep track of reactivity of props, state and context values in MitosisComponent JSON

  • add smarter replaceNodes helper instead of replaceIdentifier

  • add handling of types, context setters and getters code to CODE_PROCESSOR_PLUGIN.

@vercel
Copy link

vercel bot commented Oct 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mitosis-fiddle ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 29, 2023 4:03pm

@samijaber samijaber marked this pull request as ready for review October 27, 2022 19:39
@samijaber samijaber requested a review from a team as a code owner October 27, 2022 19:39
@samijaber samijaber requested review from adamdbradley and removed request for a team October 27, 2022 19:39
@samijaber samijaber changed the title Feature: reactive svelte context Feature: Reactivity Jun 27, 2023
@samijaber samijaber marked this pull request as ready for review June 29, 2023 17:21
@samijaber samijaber merged commit 77c8d0b into BuilderIO:main Jun 29, 2023
5 checks passed
@samijaber samijaber deleted the feature/reactive-context branch June 29, 2023 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant