1cd18ac9f4
--- Issues: (1) #-2669: Page does not restore to top when navigating new tags. (2) "Encountered children with the same key" error (duplicate entries shown). https://github.com/lbryio/lbry-desktop/issues/4367#issuecomment-645449206 --- Changes: (1) Ignore the history if it's a new query (i.e. explicitly clicked). The BACK history will still behave as normal (doesn't reset to top). (2) Previously, the `page` variable will continue to increment as you scroll and stay within the page (e.g. Trending vs New, or clicked another Tag). As you move between queries, we hit a scenario where `page` is significantly under or over the latest retrieved `claimSearchResult.length`. This messes up the rest of the code. Fix by correcting the value of `page` according to the current `claimSearchResult.length` when necessary. |
||
---|---|---|
.. | ||
index.js | ||
view.jsx |