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

#4837 - Library filter does not reset when switching between Micro and Macro mode #4859

Conversation

Guch1g0v
Copy link
Collaborator

How the feature works? / How did you fix the issue?

(Screenshots, videos, or GIFs, if applicable)
Adding logic to track the first rendering of a component

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

setFirstRender(false);
dispatch(setSearchFilter(''));
}
}, [dispatch, firstRender]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you don't need firstRender flag, if you just leave useEffect dependencies array empty, it will fire only once on mount, can you check will it work?

@Guch1g0v Guch1g0v requested a review from svvald June 18, 2024 10:49
@NataliaLoginova NataliaLoginova merged commit 5877373 into master Jun 19, 2024
5 checks passed
@NataliaLoginova NataliaLoginova deleted the 4837-library-filter-does-not-reset-when-switching-between-micro-and-macro-mode branch June 19, 2024 09:40
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.

Library filter does not reset when switching between Micro and Macro mode
3 participants