nativescript-vscode-snippets icon indicating copy to clipboard operation
nativescript-vscode-snippets copied to clipboard

onLoaded event naming

Open jasongerstorff opened this issue 6 years ago • 0 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.

jasongerstorff avatar Aug 17 '18 19:08 jasongerstorff