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

Skip favorites dropdown loading state on init #4318

Merged
merged 2 commits into from
Oct 31, 2019

Conversation

gabrieldutra
Copy link
Member

What type of PR is this? (check all applicable)

  • Other

Description

Seemed the simplest solution to avoid Percy diffing issues like this one.

Related Tickets & Documents

--

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

--

@gabrieldutra gabrieldutra requested a review from ranbena October 30, 2019 14:08
@gabrieldutra gabrieldutra self-assigned this Oct 30, 2019
const fetchItems = useCallback((skipLoadingState = false) => {
if (!skipLoadingState) {
setLoading(true);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

How about this instead?

const fetchItems = useCallback((showLoadingState = true) => {
  setLoading(showLoadingState);

@gabrieldutra gabrieldutra merged commit 74dbb8a into master Oct 31, 2019
@gabrieldutra gabrieldutra deleted the favorites-dropdown-percy branch October 31, 2019 16:28
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.

2 participants