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

[TM-572] "Nothing to report" selection bumps user to page 1 of reports #653

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

Scriptmatico
Copy link
Collaborator

https://gfw.atlassian.net/browse/TM-572

The issue was that the hook useDate is returning a reference everytime any state is updated, this for useMemo is change even if the other data haven't changed this reload the whole page.

Now memoizing the format function in the useDate will cache the function and just change when is needed.

Copy link

vercel bot commented Nov 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wri-terramatch-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 11:50pm
wri-terramatch-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 11, 2024 11:50pm

Copy link
Collaborator

@roguenet roguenet left a comment

Choose a reason for hiding this comment

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

Good catch!

@Scriptmatico Scriptmatico merged commit 247f8a8 into staging Nov 12, 2024
4 checks passed
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