Shopify/shopify-app-bridge

Issue with Resource Variant Selection Functionality

Closed this issue · 1 comments

Describe the bug

The variant resource picker seems to no longer be working. We have an custom embeded app that uses remix, we haven't made any updates to the app in a while. Everything has been working smoothly until last Friday when we attempt to use the variant resource picker within the app, the modal appears, it allows you to select the variants. However when after you click the "Add" button, nothing happens. We don't get back the variant payload.

To Reproduce

Steps to reproduce the behaviour:

  1. Launch the embedded app from our store.
  2. Navigate to /app/prebuilt-bundles/upsert
  3. Select a "Bundle Product"
  4. Attempt to select variants.
  5. There is no error in the console, however no payload is received from the variant resource picker.

Image

Expected behaviour

After you've selected the variants you want from the variant resource picker, we should get back a payload from the resource picker with the variants payload.

Packages and versions

List the relevant packages you’re using, and their versions. For example:

  • @shopify/polaris @ 12.26.1
  • @shopify/shopify-app-remix @ 2.7.0
  • @shopify/shopify-app-session-storage-prisma @ 4.0.1

Platform

  • Every platform

Additional context

We're using the vite version of remix here. Let me know if I'm missing something here! Thanks for looking into this ahead of time!

To emphasize: This is a new issue, we haven't made any updates to the app in several months and it's been working fine ever since this Friday!

After updating our state management (Jotai) everything seems to be working as intended. Not sure why this was broken in the first place. As we hadn't made any updates in a while.