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 reactiveBeforeFlush #83

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Added reactiveBeforeFlush #83

wants to merge 1 commit into from

Conversation

zgavin
Copy link
Collaborator

@zgavin zgavin commented Dec 10, 2020

No description provided.

return todo.metadata.config.__data.reversedHintsForReactiveHooks.map(async (reverseHint) => {
(await followReverseHint(entities, reverseHint)).forEach((entity) => {
const todo = getTodo(todos, entity);
if (!todo.reactiveHooks.includes(entity) && !entity.isDeletedEntity) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we only push this into reactiveHooks if the entity is not already in entities, i.e. it will have its hooks fired anyway, and we might double fire the hook?

Copy link
Collaborator

@stephenh stephenh left a comment

Choose a reason for hiding this comment

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

Sweet

Base automatically changed from master to main March 14, 2021 15:29
@stephenh stephenh force-pushed the main branch 9 times, most recently from c936e48 to 7037a81 Compare March 27, 2022 16:02
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.

None yet

2 participants