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
Console exception when reflex updates a page that didn't trigger the update #336
Comments
I'm having the same issue, seems related to #335. |
Hi @rockhymas, is this issue fixed by running #335 on your local machine? It'd be really, really helpful to the project if you were able to help us confirm that our fix for your problem works as intended. |
I'd love to help out. I'm still fairly new to rails and stimulus reflex. How do I go about using a non-released version of stimulusreflex in my rails app? |
You are in luck! I wrote a new documentation section for you the other day: https://docs.stimulusreflex.com/setup#running-a-branch-to-test-a-github-pull-request |
Sweet, that got me unblocked for bit. I now have both the gem and the node package, but the javascript isn't being included in webpack now, so I see this error on page load:
Yarn is saying I need to link |
Can you confirm that you've run Also, if you're on Discord, this could be easier to solve. |
Yeah, I've run that, output shows no errors. Will jump on discord. |
Hey @rockhymas, are you sorted on this issue? |
Yeah, this is great, and I've learned a lot. Thanks again. |
Bug Report
Describe the bug
Reflex updates that are not triggered by the client they are being sent to, show a console error:
Introduced by #299. The
promises
hash doesn't have an entry for the reflexId passed, but there is not check for null/undefined.To Reproduce
Use the TodoMVC app in two browser tabs, but with StimulusReflex 3.3.0.
Check off a todo.
Note that it gets checked off in the other tab.
But there is also the console error above.
Expected behavior
No javascript error
Versions
StimulusReflex
External tools
Browser
The text was updated successfully, but these errors were encountered: