as you know there are some gotchas with Context API performance. so I recommend combining https://github.com/dai-shi/use-context-selector with this library to make it performant and avoid re-renders