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

Fix/thinking aloud #14

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Fix/thinking aloud #14

merged 1 commit into from
Jan 24, 2024

Conversation

richtera
Copy link

Description and Related Issue(s)

Caching for api.universalprofile.cloud is not ideal and the browser many times tries
to get information for the same address due to useEffect and useState re-rendering.

Proposed Changes

Change to use useQuery instead of manually using the query client.

Additional Information

The change should be observable in the network panel of the browser debugger.

Checklist for PR author

  • I have tested these changes locally.
  • I added tests to cover any new functionality, following this guide
  • Whenever I fix a bug, I include a regression test to ensure that the bug does not reappear silently.
  • If I have added, changed, renamed, or removed an environment variable, I have updated the list of environment variables in the documentation and made the necessary changes to the validator script according to the guide

@mxmar
Copy link
Collaborator

mxmar commented Jan 22, 2024

I've updated this PR with lukso branch.

FYI @richtera @Wolmin

fix: Repair caching of lukso api calls.

fix: Also adjust code which is getting the name

fix: Disable refresh and stale handling.

fix: Make it stale for 1 hours.

fix: Remove lookup for 0x0000...0000 address on the api

fix: Prevent flickering from one icon to another.
@richtera richtera merged commit 0fd0692 into lukso Jan 24, 2024
3 of 6 checks passed
@richtera richtera deleted the fix/thinking-aloud branch January 24, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants