The implementation looks correct.
Here are things you can check upon:
- Is the page/component where you are using the values are inside the layout holding the context provider.
- Is the layout set at higher order than the childrens.
- Is the context provider exported correctly and the address is correct.