React.js Client Context pass URL from API/Store #4548
Unanswered
johnnytolengo
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was trying to make a Client context (to use in all pages) and pass the URL Websocket server to my context.
The thing is that is that the URL is no fixed so I have to wait an API reponse, after that the URL is saved into the store, then I am able to connect the WS.
I was looking for a clean way (no-wrapper) to do so but without success.
My current loading page workflow looks like that:
Any suggestion?
Beta Was this translation helpful? Give feedback.
All reactions