How to initialise Log Rocket or any other client library with RSC in App Router?
Unanswered
rex1410 posted this in #help-forum
rex1410OP
Logrocket requires a single line command to be initialised
But this needs to run on client side for frontend logging. There are other examples of such libraries that have frontend based initialisation. How do I run them on the client side?
Do I make my
Or maybe use a client context provider? Idk but that sounds like an overkill.
LogRocket.init('app/id');But this needs to run on client side for frontend logging. There are other examples of such libraries that have frontend based initialisation. How do I run them on the client side?
Do I make my
page.tsx a client component and then run? Or should I just initialise them in whatever the first client component is?Or maybe use a client context provider? Idk but that sounds like an overkill.