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(background): fix order when calling start #440

Merged
merged 5 commits into from
Jul 22, 2024
Merged

Conversation

raducristianpopa
Copy link
Member

@raducristianpopa raducristianpopa commented Jul 22, 2024

Context

#368 (comment)

Changes proposed in this pull request

scheduleResetOutOfFundsState was setting the storage, therefore the onInstalled handler was never populating the storage.

@github-actions github-actions bot added the area: background Improvements or additions to extension background script label Jul 22, 2024
@raducristianpopa
Copy link
Member Author

raducristianpopa commented Jul 22, 2024

Extension builds preview

Name Link
Latest commit eb4e2de
Latest job logs Run #10042612359
BadgeDownload
BadgeDownload

@sidvishnoi
Copy link
Member

sidvishnoi commented Jul 22, 2024

This alone won't resolve the timing issue. Need to make sure it happens after install-event handler complete.

Edit: but also on each background.start() 😬

src/background/services/background.ts Outdated Show resolved Hide resolved
@raducristianpopa raducristianpopa merged commit c16ec97 into main Jul 22, 2024
8 checks passed
@raducristianpopa raducristianpopa deleted the rp/fix-storage branch July 22, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: background Improvements or additions to extension background script
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants