Metadata field in the Client struct #368
markandpathak
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Often, hooks are mainly required to change the behaviour depending on some external data and to get the information from the server about a state. It is often required to reference external information while running hooks.
I am suggesting a
Metadata
field inClient
struct which will be of typemap[string]interface{}
. Any arbitrary value can be stored in the field which gets passed along to hooks and can be used very easily.P.S - There is a Key Value slice available in UserProperties but that can not store arbitrary data types
Beta Was this translation helpful? Give feedback.
All reactions