Skip to content

Conversation

@EnderRomantice
Copy link
Contributor

Cache scroll trigger start value:

The calculation of the scroll trigger start position (involving regular expressions and string concatenation) is now cached. It is only recalculated when the threshold or root margin property changes.

Cache render-time values:

Values ​​created on each render are now cached to ensure reference stability ->

userHasFont boolean check.

fallbackFont style object.

The final commonStyle object passed to the element.

classes string.

Fix useGSAP dependency:

When a parent component provides a new callback function, the effect might not re-run correctly, triggering an outdated closure issue.

Therefore, I have added the callback function to the useGSAP dependency array.

@DavidHDev DavidHDev merged commit 3c9d40f into DavidHDev:main Dec 4, 2025
@EnderRomantice
Copy link
Contributor Author

EnderRomantice commented Dec 4, 2025 via email

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