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

Move lazy._result assignment #14632

Merged
merged 1 commit into from Jan 18, 2019
Merged

Move lazy._result assignment #14632

merged 1 commit into from Jan 18, 2019

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Jan 18, 2019

Follow-up to #14626.

@gaearon gaearon merged commit a2fa6eb into facebook:master Jan 18, 2019
@gaearon gaearon deleted the move-assng branch January 18, 2019 21:57
@gaearon
Copy link
Collaborator Author

gaearon commented Jan 18, 2019

Hmm. Actually this is wrong. It will infinite-loop for sync rejection because we're overwriting the result. I just realized that's why I wrote it this way.

gaearon added a commit to gaearon/react that referenced this pull request Jan 18, 2019
Reverts facebook#14632 and adds a regression test.
@gaearon
Copy link
Collaborator Author

gaearon commented Jan 18, 2019

#14633

gaearon added a commit that referenced this pull request Jan 19, 2019
* Fix handling of sync rejection

Reverts #14632 and adds a regression test.

* Handle rejection synchronously too

Fewer footguns and seems like nicer behavior anyway.
jetoneza pushed a commit to jetoneza/react that referenced this pull request Jan 23, 2019
jetoneza pushed a commit to jetoneza/react that referenced this pull request Jan 23, 2019
* Fix handling of sync rejection

Reverts facebook#14632 and adds a regression test.

* Handle rejection synchronously too

Fewer footguns and seems like nicer behavior anyway.
n8schloss pushed a commit to n8schloss/react that referenced this pull request Jan 31, 2019
n8schloss pushed a commit to n8schloss/react that referenced this pull request Jan 31, 2019
* Fix handling of sync rejection

Reverts facebook#14632 and adds a regression test.

* Handle rejection synchronously too

Fewer footguns and seems like nicer behavior anyway.
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.

None yet

3 participants