Skip to content

Conversation

@tomsmalley
Copy link
Member

(Also move what I think is the corresponding comment)

Without this NOINLINE, the FastWeakTicket can be fused away (in
cacheSubscription in particular), causing early unsubscriptions.

This manifested itself in reflex-dom-core as items in a nested list
never being added to the DOM, because runWithReplace in the immediate
builder was being unsubscribed from the lifted runWithReplace result
events.

(Also move what I think is the corresponding comment)

Without this NOINLINE, the FastWeakTicket can be fused away (in
cacheSubscription in particular), causing early unsubscriptions.

This manifested itself in reflex-dom-core as items in a nested list
never being added to the DOM, because runWithReplace in the immediate
builder was being unsubscribed from the lifted runWithReplace result
events.
@Ericson2314
Copy link
Member

Wow!

@3noch
Copy link
Member

3noch commented Mar 30, 2020

This also explains why debugging code would make the bug go away!

@tomsmalley tomsmalley marked this pull request as ready for review March 30, 2020 21:38
@3noch 3noch merged commit 77e79c4 into develop Mar 31, 2020
@tomsmalley tomsmalley deleted the ts-fix-fastweakticket-fusion branch April 24, 2020 06:29
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.

4 participants