Context of React

Hi everyone,

Since React is release with Context to manage data pass through component trees.
Afaik, BAP is using Redux as state management, will we consider or plan to migrate to Context?

Cheers,
Trinh.

Hi @trinh-wintry-peat, thanks for the update. Current we don’t have plan to do this. I will try to talk to Client and Engines team to get the feedback. Thanks.

Hi Trinh,

Redux provides the connect function exactly for this purpose, which uses React context behind the scenes.

In addition, BAP Client views recieve the activity that triggered it as prop. Hence you don’t need to connect your component for accessing it. However you do need it to access other things or to dispatch actions.

HTH,
BJ