status-im / pluto

https://status-im.github.io/pluto/
12 stars 3 forks source link

Implemented extension context #93

Closed flexsurfer closed 5 years ago

flexsurfer commented 5 years ago

This PR is a part of the work on multi-extensions store support. https://github.com/status-im/status-react/pull/6766

It adds env (open for naming discussion :) map to the ctx parameter in the parse function, so it's possible to provide any data related to extensions from outside when an extension is parsed and created and use it later in dispatch and query handlers, for example here we pass id of extension to use it for starage

jeluard commented 5 years ago

@flexsurfer Please describe what this PR does! Also you can take this opportunity to add documentation to the functions you modified :)

flexsurfer commented 5 years ago

@jeluard added a description to PR, will take this opportunity, thank you :)