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

Added refsFn to computed #257

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

michielvandergeest
Copy link
Collaborator

Added refsFn to computed, to ensure all references are reactively being tracked even if one of them is falsy.

Reactivity in computed functions is setup when an internal ref is being accessed. In some cases the dependency between references can cause refs to never be accessed and as a result changes to those refs will never trigger the reactivity and reevaluation of the computed prop.

Reported on discord: https://discord.com/channels/1020300788016353311/1329146069518651496

Playground example: https://playground.lightningjs.io/#QLnOkvYbQQiQ

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