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

show warning if setState or resetState after session is written #186

Merged
merged 1 commit into from Feb 5, 2018

Conversation

tw0517tw
Copy link
Collaborator

@tw0517tw tw0517tw commented Feb 5, 2018

No description provided.

@tw0517tw tw0517tw force-pushed the sessionwrite branch 2 times, most recently from fd47eae to a6d5de9 Compare February 5, 2018 11:00

warning(
!this._isSessionWritten,
'Calling `context.setState` after session has been written. Some changes to state will not be saved.\nDid you forget to await any asnyc function?'
Copy link
Collaborator

Choose a reason for hiding this comment

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

async


warning(
!this._isSessionWritten,
'Calling `context.resetState` after session has been written. Some changes to state will not be saved.\nDid you forget to await any asnyc function?'
Copy link
Collaborator

Choose a reason for hiding this comment

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

async

@chentsulin chentsulin merged commit 57348d4 into master Feb 5, 2018
@chentsulin chentsulin deleted the sessionwrite branch February 5, 2018 15:25
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

2 participants