According to Doc - Speed Insights
,I should use injectSpeedInsights(); to init in other framework.
However, it will throw an error like below:
Solution: should I use injectSpeedInsights({}); instead of injectSpeedInsights(); ? In the source code, props is not optional, otherwise it will throw an error when execute props.router.
According to Doc - Speed Insights ,I should use
injectSpeedInsights();
to init in other framework.However, it will throw an error like below:
Solution: should I use
injectSpeedInsights({});
instead ofinjectSpeedInsights();
? In the source code,props
is not optional, otherwise it will throw an error when executeprops.router
.