-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: issues for vue composition api (#1558)
* fix: issues for vue composition api * fix: issue with vue build * fix: issue with `this.` inside `useStore` for all generators * Update packages/core/src/generators/vue/compositionApi.ts Co-authored-by: Sami Jaber <[email protected]> * fix: issue with types for all states * chore: update from main * chore: update snapshots --------- Co-authored-by: Sami Jaber <[email protected]>
- Loading branch information
Showing
46 changed files
with
6,961 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'@builder.io/mitosis': patch | ||
--- | ||
|
||
[Vue] fix: ref wasn't imported when using `useRef` hook without using `useState` | ||
|
||
[Vue] fix: Composition api always use `ref()` wihtout any class -> we don't need this., but we always use `.value` | ||
|
||
[Vue] fix: `ref` could be `null` for `useRef` see: https://vuejs.org/guide/essentials/template-refs.html#accessing-the-refs | ||
|
||
[All] fix: replace `this.` expression in `useState` with `state.` to resolve correct `stripStateAndPropsRefs()` function inside all generators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.