Skip to content

Commit

Permalink
fix(nav-link): opt-out of vue reactivity for component binding (#3113)
Browse files Browse the repository at this point in the history
Co-authored-by: David Kagiri <davykiash@gmail.com>
  • Loading branch information
sean-perkins and davykiash authored Sep 11, 2023
1 parent bb90741 commit af6249f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion static/usage/v6/nav/nav-link/vue/example_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
</template>

<script lang="ts">
import { markRaw } from 'vue';
import { IonNav } from '@ionic/vue';
import PageOne from './PageOne.vue';
export default {
components: { IonNav },
data() {
return {
component: PageOne,
component: markRaw(PageOne),
};
},
};
Expand Down
3 changes: 2 additions & 1 deletion static/usage/v6/nav/nav-link/vue/page_one_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
</template>

<script lang="ts">
import { markRaw } from 'vue';
import { IonHeader, IonTitle, IonToolbar, IonContent, IonNavLink, IonButton } from '@ionic/vue';
import PageTwo from './PageTwo.vue';
export default {
components: { IonHeader, IonTitle, IonToolbar, IonContent, IonNavLink, IonButton },
data() {
return {
component: PageTwo,
component: markRaw(PageTwo),
};
},
};
Expand Down
3 changes: 2 additions & 1 deletion static/usage/v6/nav/nav-link/vue/page_two_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</template>

<script lang="ts">
import { markRaw } from 'vue';
import {
IonHeader,
IonTitle,
Expand All @@ -42,7 +43,7 @@
},
data() {
return {
component: PageThree,
component: markRaw(PageThree),
};
},
};
Expand Down
3 changes: 2 additions & 1 deletion static/usage/v7/nav/nav-link/vue/example_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
</template>

<script lang="ts">
import { markRaw } from 'vue';
import { IonNav } from '@ionic/vue';
import PageOne from './PageOne.vue';
export default {
components: { IonNav },
data() {
return {
component: PageOne,
component: markRaw(PageOne),
};
},
};
Expand Down
3 changes: 2 additions & 1 deletion static/usage/v7/nav/nav-link/vue/page_one_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
</template>

<script lang="ts">
import { markRaw } from 'vue';
import { IonHeader, IonTitle, IonToolbar, IonContent, IonNavLink, IonButton } from '@ionic/vue';
import PageTwo from './PageTwo.vue';
export default {
components: { IonHeader, IonTitle, IonToolbar, IonContent, IonNavLink, IonButton },
data() {
return {
component: PageTwo,
component: markRaw(PageTwo),
};
},
};
Expand Down
3 changes: 2 additions & 1 deletion static/usage/v7/nav/nav-link/vue/page_two_vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</template>

<script lang="ts">
import { markRaw } from 'vue';
import {
IonHeader,
IonTitle,
Expand All @@ -42,7 +43,7 @@
},
data() {
return {
component: PageThree,
component: markRaw(PageThree),
};
},
};
Expand Down

1 comment on commit af6249f

@vercel
Copy link

@vercel vercel bot commented on af6249f Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ionic-docs – ./

ionic-docs-ionic1.vercel.app
ionic-docs-git-main-ionic1.vercel.app
ionic-docs-gqykycf8t.vercel.app

Please sign in to comment.