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

Reentrancy issue with remote method #2290

Closed
wants to merge 1 commit into from

Conversation

ahamid
Copy link

@ahamid ahamid commented Jul 11, 2019

While testing a custom variant of the remote method i found that I had to move up this guard otherwise previous.originalMessage would get stomped on a reentrant invocation. To be clear, I haven't confirmed this using the remote method directly but I am using all the same boilerplate and just changing my method name (and some details about how the response is handled).
Also I believe previous.message should not be getting assigned a resolved value in the case it's a function, otherwise it will always remain that static value instead of dynamically updating on the next error.
I figured it was worth mentioning.

While testing a custom variant of the remote method i found that I had to move up this guard otherwise `previous.originalMessage` would get stomped on a reentrant invocation.  To be clear, I haven't confirmed this using the `remote` method directly but I am using all the same boilerplate and just changing my method name (and some details about how the response is handled).
Also I believe `previous.message` should not be getting assigned a resolved value in the case it's a function, otherwise it will always remain that static value instead of dynamically updating on the next error.
I figured it was worth mentioning.
@ahamid ahamid closed this Jul 11, 2019
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.

None yet

1 participant