Skip to content

Fix: setState during build, unmounted widget calls, and unnecessary fetch on tap/short drag - #29

Merged
rickypid merged 3 commits into
mainfrom
fix
Apr 28, 2026
Merged

rickypid merged 3 commits into
mainfrom
fix

Conversation

@rickypid

Copy link
Copy Markdown
Contributor

No description provided.

…troller.fetch()` via `addPostFrameCallback`.

- Fix `setState` called on unmounted widget in `_getAsync` by adding `mounted` guards before each `setState` call.
- Skip `controller.fetch()` on pan end when the visible date range has not changed (e.g. simple tap or sub-day drag).
@rickypid rickypid changed the title - Fix setState called during build in initState by deferring `con… Fix: setState during build, unmounted widget calls, and unnecessary fetch on tap/short drag Apr 28, 2026
…troller.fetch()` via `addPostFrameCallback`.

- Fix `setState` called on unmounted widget in `_getAsync` by adding `mounted` guards before each `setState` call.
- Skip `controller.fetch()` on pan end when the visible date range has not changed (e.g. simple tap or sub-day drag).
…troller.fetch()` via `addPostFrameCallback`.

- Fix `setState` called on unmounted widget in `_getAsync` by adding `mounted` guards before each `setState` call.
- Skip `controller.fetch()` on pan end when the visible date range has not changed (e.g. simple tap or sub-day drag).
@rickypid
rickypid merged commit 319bf3b into main Apr 28, 2026
1 check passed
@rickypid
rickypid deleted the fix branch April 28, 2026 08:14
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.

1 participant