Requirement 1.2.1
The client MUST provide a method to add hooks which accepts one or more API-conformant hooks, and appends them to the collection of any previously added hooks. When new hooks are added, previously added hooks are not removed.
// example hook attachment
client.addHooks([new MyHook()]);
https://docs.openfeature.dev/docs/specification/sections/flag-evaluation
Requirement 1.2.1 The client MUST provide a method to add hooks which accepts one or more API-conformant hooks, and appends them to the collection of any previously added hooks. When new hooks are added, previously added hooks are not removed.
// example hook attachment client.addHooks([new MyHook()]);
See hooks for details.