halfnelson / svelte-native

Svelte controlling native components via Nativescript
MIT License
1.82k stars 78 forks source link

feat: Expose navigate() event handler to HMR #350

Closed CatchABus closed 1 year ago

CatchABus commented 1 year ago

This is a necessity to cleanup the mess in svelte-hmr. It goes along with my svelte-hmr refactoring: https://github.com/sveltejs/svelte-hmr/compare/master...CatchABus:svelte-hmr:svelte-native-ns8

By exposing this event handler, we'll be able to prevent HMR from intercepting methods like addEventListener/on.