LucasBassetti/react-simple-chatbot

Not able to get previous value in "Options"

Opened this issue · 1 comments

Describe the bug
As per our chatbot requirement, we want to show dynamic data in Options.
For example:

  1. Initially there will be 3 options
    Class A
    Class B
    Class C
    If user select Class A
    then there will be next options like

     Do you want to join Class A?
     Do you know someone from Class A?
     .....
    etc
    

I have used previousValue in "message" and it is working fine.
But, do you have any way to read previousValue in "Options"?

is there also a way to use previousValue from any step? I mean in step 3 i can reference stet's 2 value but not the one from step 1, it will be really usefull