Skip to content

Add test for lifecycles and state of a delayed suspending compo…#2114

Merged
marvinhagemeister merged 1 commit into
masterfrom
feat/add-state-suspend-test
Nov 12, 2019
Merged

Add test for lifecycles and state of a delayed suspending compo…#2114
marvinhagemeister merged 1 commit into
masterfrom
feat/add-state-suspend-test

Conversation

@andrewiggins

Copy link
Copy Markdown
Member

This new test covers the case where a component suspends after the first where some state change causes the suspension (e.g. a button press that asynchronously increments the count when it needs to get more values then it has. Actually, that's a good test case. Lol maybe sometime later I'll add that).

@JoviDeCroock JoviDeCroock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

💯 Great work Andre

@marvinhagemeister marvinhagemeister changed the title Add test for lifecycles and state of a delayed suspending component Add test for lifecycles and state of a delayed suspending compo… Nov 12, 2019
@marvinhagemeister marvinhagemeister merged commit 5943132 into master Nov 12, 2019
@marvinhagemeister marvinhagemeister deleted the feat/add-state-suspend-test branch November 12, 2019 21:23
// TODO: This is called thrice since the cDU queued up after the second
// increment is never cleared once the component suspends. So when it
// resumes and the component is rerendered, we queue up another cDU so
// cDU is called an extra time.

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.

Note there is a follow up to this comment in #2098 (specifically this comment)

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