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

Only fetch logs when we need them #1638

Merged
merged 4 commits into from
Nov 24, 2024
Merged

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Nov 22, 2024

Description

Fix #1635 by never fetching wallet logs as anon.

Additionally, only fetch wallet logs on the pages where we actually need them.

Checklist

Are your changes backwards compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

7. Logs aren't fetched as anon. Logs are only fetched on pages that start with /settings/wallets or on the /wallet/logs page.

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

n/a

Did you introduce any new environment variables? If so, call them out explicitly here:

no

@ekzyis ekzyis added the bug label Nov 22, 2024
components/wallet-logger.js Outdated Show resolved Hide resolved
This makes sure that we wait for the pending poll to finish before we poll again. This prevents running multiple polls at the same time on slow connections.

I noticed we don't need to queue a new poll ourselves since a poll updates effect dependencies so we will cleanup and run the effect again anyway.
@ekzyis ekzyis force-pushed the fix-anon-wallet-logs-typeerror branch from 74581a2 to a66c7bb Compare November 24, 2024 00:10
@huumn huumn merged commit f5569d7 into master Nov 24, 2024
6 checks passed
@huumn huumn deleted the fix-anon-wallet-logs-typeerror branch November 24, 2024 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

anons get walletLogs errors spammed in console
3 participants