If you follow the steps given by the preline team, you will get a bug where the HSStatic method will be initialized twice at the same time. Check this out below:
You can see in the console that the HSStatic method is initialized twice, will this affect the profiling stage?
This is the code provided by the Preline team:
If I change the block of code like this:
Then the HSStatic method will only be initialized once, check this out below:
HSStatic method initialized 2 times at the same time. Is this a bug or installation procedure error?
For NextJS integration and installation methods, you can go to the following page: https://preline.co/docs/frameworks-nextjs.html
If you follow the steps given by the preline team, you will get a bug where the HSStatic method will be initialized twice at the same time. Check this out below:
You can see in the console that the HSStatic method is initialized twice, will this affect the profiling stage?
This is the code provided by the Preline team:
If I change the block of code like this:
Then the HSStatic method will only be initialized once, check this out below: