Closed jalaj711 closed 1 year ago
This seems to because of asynchronicity with setState
function and how we use it. The getTransaction()
function loads the search params from the state:
And the initial filters are extracted from the URL in a useEffect()
hook:
sets the state accordingly and then calls the getTranscation function. However, probably this is where the problem lies. Maybe, getTransaction()
is being called before the state
actually updates, causing the initial filters to be ineffective, even if they are reflected in the UI.
The transactions page is supposed to extract search filters from the URL search params at initial load. This helps in smooth transitions from other pages, like
wallets/[id].tsx
. This functionality helps to view transactions from a certain wallet by simply clicking on the 'View All' button on that page.However, this functionality does not seem to work. This needs to be fixed.