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
As mentioned in the second point in https://selfoss.aditu.de/forum/index.php?id=1447, in 2.18, clicking the current active filter/tag/source in the navbar triggered a reload of the EntriesPage. Since we switched to react-router in 405a3ec, it no longer works because it is URL-driven and clicking the link does not change the URL.
The text was updated successfully, but these errors were encountered:
I just made the switch from 2.18 to 2.19 and this is definitely one of those features I'm missing. However the improvements to the code outweigh this tiny change that I have to reload the page by other means.
This is quite hacky – router does not re-render the route when clicking
on an already active link because its data is based on the document.location.
To bypass this, we need to pass an extra value in the location’s state object
that will let us know we should reload. And for similar reasons, it cannot
just be a boolean (or we would have to clear the state each time to be able
to tell when the value changes again) so we are back at increasing counters.
Unfortunately, that is not end of it since any navigation would clear
the state, triggering another reload so we also need to use another
counter that only increases when the counter in location state increases.
Fixes: #1287
As mentioned in the second point in https://selfoss.aditu.de/forum/index.php?id=1447, in 2.18, clicking the current active filter/tag/source in the navbar triggered a reload of the
EntriesPage
. Since we switched to react-router in 405a3ec, it no longer works because it is URL-driven and clicking the link does not change the URL.The text was updated successfully, but these errors were encountered: