Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"@nativescript/core": "~8.8.6",
"@nativescript/core": "~8.9.9",
"@vueuse/components": "^12.5.0",
"@vueuse/core": "^12.5.0",
"nativescript-vue": "link:.."
},
"devDependencies": {
"@nativescript/android": "~8.8.6",
"@nativescript/ios": "~8.8.2",
"@nativescript/android": "~8.9.2",
"@nativescript/ios": "~8.9.4",
"@nativescript/tailwind": "~4.0.3",
"@nativescript/types": "~8.8.0",
"@nativescript/webpack": "~5.0.0",
"tailwindcss": "^4.1.3",
"typescript": "^5.7.3"
}
}
31 changes: 31 additions & 0 deletions demo/src/components/HMRTest.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<template>
<Page>
<StackLayout>
<Label
text="nativescript-vue/demo"
fontSize="32"
fontWeight="bold"
padding="20"
color="#4CAF50"
/>
<Label
text="Hello World from HMRTest - nativescript-vue Demo"
fontSize="24"
padding="20"
/>
<Label
text="Edit this text to test HMR in Demo"
fontSize="16"
padding="20"
/>
</StackLayout>
</Page>
</template>

<script setup lang="ts">
import { onMounted } from 'nativescript-vue';

onMounted(() => {
console.log('HMRTest component mounted - Demo');
});
</script>
24 changes: 24 additions & 0 deletions demo/src/components/HMRTestLoader.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<Frame>
<Page>
<Label text="Loading..." />
</Page>
</Frame>
</template>

<script setup lang="ts">
import { onMounted, $navigateTo } from 'nativescript-vue';
import HMRTest from './HMRTest.vue';

onMounted(() => {
console.log('HMRTestLoader mounted');

setTimeout(() => {
console.log('Navigating to HMRTest');
$navigateTo(HMRTest, {
animated: false,
clearHistory: true,
});
}, 100);
});
</script>
Loading