Hello, I am trying to build an extension where if customers select certain address (state/ provinceCode), a note is displayed. I am using useShippingAddress API and following ‘Extension APIS’ this part of the documentation:
The issue is - it works once i.e. a note is displayed, if CA is not the country code, it’s hidden but it does not work anymore.
There is also an issue with the snippet that React needs the function to return something, it cannot render nothing so this also needs an update.
Any help is appreciated.
Thanks

