You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's supposed to rerender every time the route update. It works on the first update of my route, and then the component doesn't update at all. I added some log inside the setCurrentRoute, it is triggered, but component still not rerender.
Someone suggested that I make it with a reducer and it worked perfectly:
* Add isFocused
* Check focus with Focus.isFocused
* Fix focus not blurring first
* Switch from reducer to state hook
* Remove old reducer actions
* Add interface for Focus
* Stick with reducer
Using reducer instead of state hook because of possible bug with state
hooks (briskml/brisk-reconciler#74).
* Use Focus.dispatch for events
* Separate function for internal to external event
Hello !
I wrote a component like this:
It's supposed to rerender every time the route update. It works on the first update of my route, and then the component doesn't update at all. I added some log inside the
setCurrentRoute
, it is triggered, but component still not rerender.Someone suggested that I make it with a reducer and it worked perfectly:
The text was updated successfully, but these errors were encountered: