Skip to content

Add NOINLINE pragma to mkFastWeakTicket - #409

Merged
3noch merged 4 commits into
developfrom
ts-fix-fastweakticket-fusion
Mar 31, 2020
Merged

3noch merged 4 commits into
developfrom
ts-fix-fastweakticket-fusion

Conversation

@tomsmalley

Copy link
Copy Markdown
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
Copy Markdown
Member

Wow!

@3noch

3noch commented Mar 30, 2020 •

Copy link
Copy Markdown
Member

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.

3 participants