Skip to content

Prevent done from running multiple times for subscriptions#448

Merged
natefaubion merged 1 commit into
purescript-halogen:masterfrom
garyb:subscription-done-fix
Apr 24, 2017
Merged

Prevent done from running multiple times for subscriptions#448
natefaubion merged 1 commit into
purescript-halogen:masterfrom
garyb:subscription-done-fix

Conversation

@garyb
Copy link
Copy Markdown
Member

@garyb garyb commented Apr 21, 2017

Resolves #418

@garyb garyb force-pushed the subscription-done-fix branch from 63b7ccd to e1bbff1 Compare April 21, 2017 11:46
Comment thread src/Halogen/Aff/Driver/Eval.purs Outdated
done' = do
subs <- liftEff $ readRef subscriptions
when (maybe false (M.member i) subs) do
pure unit
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this seems odd?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Quick! Look over there! waves hands

What seems odd? 😉

@garyb garyb force-pushed the subscription-done-fix branch from e1bbff1 to 78675fb Compare April 21, 2017 11:49
@garyb
Copy link
Copy Markdown
Member Author

garyb commented Apr 21, 2017

@natefaubion unfortunately this does not fix whatever is going on with the "leaking" subscription in SlamData. I'm still trying to figure out what's happening in that case, as I can't see how Halogen would let it happen.

@garyb garyb requested a review from natefaubion April 21, 2017 17:09
@natefaubion natefaubion merged commit 3951753 into purescript-halogen:master Apr 24, 2017
@garyb garyb deleted the subscription-done-fix branch April 24, 2017 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants