magicbell-react throws 404 only the first time if the user doesn't exist #68
-
|
We're using the react component, but the first time a user visits the page after logging in, they receive a 404 error from the component. The reason looks to be that the first API call the component makes finds that there is no user with that external id, yet I'm pretty sure in the background it just created the user, because if the user refreshes their browser, they don't receive the error, and I can see a successful api call. The other issue is that since the first API call failed, the websocket auth then fails (until the page is refreshed) How can I handle this situation without directly adding the user to magicbell? It would be great if the magicbell-react component could handle the first attempt by a new user without erroring. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hey @cjstadther sorry about that. This usually happens if you init the component and then update the user props. Could that be happening in your code by any chance? |
Beta Was this translation helpful? Give feedback.


Hey @cjstadther sorry about that. This usually happens if you init the component and then update the user props. Could that be happening in your code by any chance?