You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like your code, and I am building something on top of it.
But I think that there is a race condition.
When two ajax requests are happening almost simultaneously, thy might both trigger the Javascript interface first and then bothtrigger shouldInterceptRequest.
In that case, the member variable holding the post content will be wrong.
I have fixed by adding an ID to the URL and using a map to store the post contents. I'll post as soon as I've cleaned up the code.
The text was updated successfully, but these errors were encountered:
I like your code, and I am building something on top of it.
But I think that there is a race condition.
When two ajax requests are happening almost simultaneously, thy might both trigger the Javascript interface first and then bothtrigger shouldInterceptRequest.
In that case, the member variable holding the post content will be wrong.
I have fixed by adding an ID to the URL and using a map to store the post contents. I'll post as soon as I've cleaned up the code.
The text was updated successfully, but these errors were encountered: