I’m creating a post-purchase-ui extension following the tutorial on shopify, and when I add the hook useExtensionInput() to the APP() component to render my ui, this error pops up. It seems like its related to not having “context” but I’m not 100% sure. I also can’t even use “useState()” Any ideas?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Cannot read properties of null (reading 'useContext') - post-purchase checkout extension | 4 | 156 | April 2, 2024 | |
| React hooks in post-purchase extension returns error - Invalid hook call | 8 | 54 | June 7, 2024 | |
| [POS UI] Invalid hook call. Hooks can only be called inside of the body of a function component | 2 | 21 | July 16, 2024 | |
| Uncaught CheckoutUIExtensionError: You can only call this hook when running as a UI extension | 6 | 60 | May 3, 2024 | |
| customer-account-ui-extensionsにおけるuseState hookの扱いについて | 0 | 11 | January 17, 2025 |