Skip to content

Memoise axis scales#1962

Merged
axelboc merged 1 commit intomainfrom
memo-axis-scales
Feb 10, 2026
Merged

Memoise axis scales#1962
axelboc merged 1 commit intomainfrom
memo-axis-scales

Conversation

@axelboc
Copy link
Copy Markdown
Contributor

@axelboc axelboc commented Feb 9, 2026

Thanks to this optimisation, the axis scales and all the memoised functions that depend on them like worldToData, getVisibleDomains, etc. are now stable when, for instance, the grid gets toggled.

I don't think it makes a noticeable difference in the viewer. It just makes things more predictable internally and for consumer applications. It also opens the door to more targeted optimisations with memo, useMemo, useCallback, etc.

@axelboc axelboc requested a review from loichuder February 9, 2026 14:48
@axelboc axelboc merged commit cb4ca3a into main Feb 10, 2026
13 checks passed
@axelboc axelboc deleted the memo-axis-scales branch February 10, 2026 07:55
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