Skip to content

Commit b2ac1b5

Browse files
committed
fix: reload css on livesync
1 parent 30a11bf commit b2ac1b5

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

platform/nativescript/framework.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,10 @@ global.__onLiveSyncCore = () => {
6262
if (frame.currentPage && frame.currentPage.modal) {
6363
frame.currentPage.modal.closeModal()
6464
}
65-
// Todo: make sure that the before-livesync hook is installed, because otherwise the page will always get reloaded.
66-
// const currentEntry = frame._currentEntry && frame._currentEntry.entry
67-
// if (currentEntry) {
6865

69-
// const newEntry = {
70-
// animated: false,
71-
// clearHistory: true,
72-
// create: () => { } ,
73-
// backstackVisible: currentEntry.backstackVisible
74-
// }
75-
// frame.navigate(newEntry)
76-
// }
66+
if (frame.currentPage) {
67+
frame.currentPage.addCssFile(application.getCssFileName())
68+
}
7769
}
7870
}
7971

samples/hooks/after-prepare/nativescript-dev-android-snapshot.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

samples/hooks/before-prepare/nativescript-dev-android-snapshot.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)