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
where constants.states is
states: {
START_MODE: '',
DETAIL_DECISION_MODE: '_DETAIL_DECISION_MODE'
}
I have found that I need both of the "reset" code lines, the first used the documented approach and the second sets the state entry ("STATE") in the session attributes to NULL directly. This works for me.
Activity
benedekh commentedon Jul 26, 2017
Empty string is a falsy (evaluates to false) value in JS. See https://dorey.github.io/JavaScript-Equality-Table/
ysak-y commentedon Jul 26, 2017
Yes, I know, so how do I reset state ?
Delete
STATEkey & value in DynamoDB directory?valentinkostadinov commentedon Aug 23, 2017
I'm having the exact same problem. Any updates on this?
How do I reset state? This is especially bothersome since the official README makes an example out of it:
And under Tips, it says:
ysak-y commentedon Aug 29, 2017
This sample is correct if you call
TargetHandlerNamewith no STATE. But after response, state will back to current state(not empty state).Now we don't have a way to reset current state.
allthepies commentedon Oct 28, 2017
I've having the same problem, an attempt to reset state to "empty" is ignored by the ASK.
The following workaround does work for me:
where constants.states is
states: {
START_MODE: '',
DETAIL_DECISION_MODE: '_DETAIL_DECISION_MODE'
}
I have found that I need both of the "reset" code lines, the first used the documented approach and the second sets the state entry ("STATE") in the session attributes to NULL directly. This works for me.
tianrenz commentedon Nov 9, 2017
issue closed.
future discussion please refer to issue #69