Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: on LOCATION_CHANGE and push type, trigger fetch assets #2037

Merged
merged 3 commits into from
Oct 16, 2023

Conversation

juanmahidalgo
Copy link
Contributor

@juanmahidalgo juanmahidalgo commented Oct 11, 2023

Closes #2036

BUG

navigation.bug.mov

FIXED

navigation.bug.fixed.mov

@coveralls
Copy link

coveralls commented Oct 11, 2023

Coverage Status

coverage: 40.81% (+0.001%) from 40.809% when pulling 1ce7ea8 on fix/navigation-issue into b7746a3 on master.

if (isComingFromBrowse) {
shouldFetchAssets = true
}
} else if (action.payload.action === 'PUSH') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been giving it a try and it seems that every change in location that is done in the browse section triggers the fetching of new assets, resulting in double fetching things. This is due to action.payload.location.pathname being /browse all the time as it doesn't count for any query parameters.

@juanmahidalgo juanmahidalgo merged commit 9c6e6c0 into master Oct 16, 2023
6 checks passed
@juanmahidalgo juanmahidalgo deleted the fix/navigation-issue branch October 16, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clicking the Collectibles tab should clear all filters
3 participants