Skip to content

Be sure to properly cancel and dispose the Retro timer#3088

Merged
veloce merged 1 commit into
lichess-org:mainfrom
freebeartogoodhome:smallRetro
May 2, 2026
Merged

Be sure to properly cancel and dispose the Retro timer#3088
veloce merged 1 commit into
lichess-org:mainfrom
freebeartogoodhome:smallRetro

Conversation

@freebeartogoodhome

Copy link
Copy Markdown
Contributor

Named the timer and made sure we are properly storing it, canceling it, and disposing it.

Changed the second mistakes.toIList() because it was redundant. It has a toIlist() right above that.

void _refreshCurrentNode({bool recomputeRootView = false}) {
state = AsyncData(
state.requireValue.copyWith(
root: recomputeRootView ? _root.view : state.requireValue.root,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This change is not relevant in that PR... but ok, it makes sense to have it.

@veloce veloce left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@veloce veloce merged commit f3b4b5b into lichess-org:main May 2, 2026
1 check passed
@freebeartogoodhome freebeartogoodhome deleted the smallRetro branch May 4, 2026 11:18
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