tsvetan-ganev / nativescript-vscode-snippets

NativeScript XML snippets for Visual Studio Code.
MIT License
43 stars 7 forks source link

onLoaded event naming #17

Open jasongerstorff opened 6 years ago

jasongerstorff commented 6 years ago

I think you should consider changing the event names to match the control, for example onListViewLoaded or something.

I used snippets for page and listview and both were firing my "onLoaded" function even though i was intending it for the page load. Took me a while to debug this, realized afterwards I could see the problem in the call stack but I am learning nativescript and it wasn't readily apparent why the function was being called twice when the page loaded. I figured i was doing my navigation wrong or something.