tsvetan-ganev / nativescript-vscode-snippets

NativeScript XML snippets for Visual Studio Code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onLoaded event naming

jasongerstorff opened this issue · comments

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.