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
Describe the bug
I have a BeamLocation that overrides updateState in order to notify some widgets down the tree when a query parameter in the URL has changed. In 1.3.0 this worked perfectly. However, when I upgraded to 1.4.0 this stopped working. After a bit of digging I found that "updateState" is no longer being called when the query parameter changes, thus preventing me from notifying my child widgets that the parameter has changed. I have a hunch this is related to change #475. Unfortunately I don't have much time to dig further and have rolled back to 1.3.0.
Beamer version: 1.4.0
To Reproduce
Steps to reproduce the behavior:
Create a BeamLocation which overrides "updateState"
Go to that URL with a query parameter: /#/?date=2022-02-28
Print or put a breakpoint in the overridden updateState method
Change the query parameter value: /#/?date=2022-02-27
Observe the print statement/breakpoint is not triggered
Expected behavior
updateState would be called when the query parameter changes
Desktop (please complete the following information):
OS: macOS
Browser: Chrome
Version: 98
The text was updated successfully, but these errors were encountered:
I will try to reproduce and will let you know when v1.4.1 with a fix is available. At first glance, it shouldn't be due to #475 because query is a part of RouteInformation.location, but we'll see.
I will try to reproduce and will let you know when v1.4.1 with a fix is available. At first glance, it shouldn't be due to #475 because query is a part of RouteInformation.location, but we'll see.
Thanks for reminding me of this as I clearly forgot. I managed to find the culprit and fix it - you can see in the commit what was wrong. It was a bit tricky to test it (I'll need to restructure the tests some time soon...), but it should work now.
Describe the bug
I have a BeamLocation that overrides updateState in order to notify some widgets down the tree when a query parameter in the URL has changed. In 1.3.0 this worked perfectly. However, when I upgraded to 1.4.0 this stopped working. After a bit of digging I found that "updateState" is no longer being called when the query parameter changes, thus preventing me from notifying my child widgets that the parameter has changed. I have a hunch this is related to change #475. Unfortunately I don't have much time to dig further and have rolled back to 1.3.0.
Beamer version: 1.4.0
To Reproduce
Steps to reproduce the behavior:
/#/?date=2022-02-28
/#/?date=2022-02-27
Expected behavior
updateState would be called when the query parameter changes
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: