Should I turn this in to a React Bug Report
bryan rasmussen
Posted on March 19, 2024
I want to ask first as the steps to make a bug report on React will of course take some work and also because it might already be a well known bug and I would just be taking up their time.
Also making a minimal code example would of course be difficult, so I want to determine if it is worth the time.
We had a component in which there was a ref to a button element.
there was also possible other refs that would have particular error messages.
the state as to whether or not this button should be shown was being handled by a parent component.
the button added an item to a shopping cart.
When the button was clicked the parent changed the state of the button (to show a spinner)
and then getting the active cart happened which also ended up with state changes.
All this worked fine. But if you happened to run click button without choosing a size of item then you got error message then you use google translate button to translate page to another language then you add item to bag then there was an error that we were trying to remove childnodes that were not there, which as far as we could determing was because of multiple state changes affecting a ref the underlying html element of which had been change by Google Translate and thus React had a problem trying to do what it was supposed to do.
If anyone on here is familiar with the React development team list of bugs dealing with etc. can you tell me - would this be useful for me to make a bug report and provide a deployment site to check the error happening?
Posted on March 19, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.