Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import SockJS in full spring application #186

Open
FlorianRuen opened this issue Apr 28, 2021 · 0 comments
Open

Import SockJS in full spring application #186

FlorianRuen opened this issue Apr 28, 2021 · 0 comments

Comments

@FlorianRuen
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant