react-stomp
react-stomp copied to clipboard
Import SockJS in full spring application
Hi there,
I'm using the react-stomp inside a Jhipster / Spring project, and it's work on one of my page to send some notifications. But today, I want to develop a notification popup (my back-end send message when alerts are created and so one), and i can't do that.
I'm explain :
- To open the SockJSClient on the complet app, I want to add it inside my header.tsx or inside my app.tsx (main entry point)
- But it cause an error "Maximun update depth exceed. [...] to prevent infinite loop"
- I try to add conditional with the websocket State or with a button, but this changed nothing.
Do you have any idea to make this works (maybe to initialize my client in another place ? to change this to avoid infinite loop ? using JS instead of the balise) ?
Thanks for your help on it, and I hope getting some answers,
Regards, Florian