Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Remove side effects from components #10979

Draft
wants to merge 16 commits into
base: dev
Choose a base branch
from

Conversation

MichaelEstes
Copy link
Contributor

Summary

Subtasks Checklist

Breaking Changes

References

closes #insert number here

QA Steps

SourceComponent.entitiesBySourceState[src].set(entities)
}
useLayoutEffect(() => {
const source = sourceComponent.value
Copy link
Member

Choose a reason for hiding this comment

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

if the source changes after the component has been created, this will no longer have the same value. we should just move this line inside the returned function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh if the source can change this is setup incorrectly altogether and won't clean up properly, good catch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants