equinor / mad

Experimental monorepo for the Mobile Application Delivery team

Home Page:https://equinor.github.io/mad/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`@equinor/mad-insights` should let developers run `track` before app insights is initialised

tormodAase opened this issue · comments

Package / App

Other

Description

App insights initialisation happens when the navigation system gets rendered. Some apps have track calls happening in App.tsx. We should make this possible by queueing up track calls before initialisation happens

Alternatives

No response

Other info

No response

Does the initialization have to happen so late?

If we want it to happen without the apps doing any additional work, then it has to happen after navigation gets initialised. The track calls would only be delayed by a few milliseconds, so it shouldn't be an issue