Shopify / ui-extensions

MIT License
266 stars 36 forks source link

POS UI Components: Support rerendering tiles #2036

Closed timvandam closed 3 months ago

timvandam commented 4 months ago

Please list the related package(s)

@shopify/retail-ui-extensions-react@1.6.0

If this related to specific APIs or components, please list them here

https://shopify.dev/docs/api/pos-extensions/ui-extensions-reference/components/tile

Is your feature request related to a problem? Please describe.

I am using a Tile with a notification count and want to refresh this notification count every 30 seconds, however, when the state of my tile component changes it does not rerender.

Describe the changes you are looking for

The pos.home.tile.render extension point should support rerendering when internal state changes, it seems like it currently does not

Describe alternatives you’ve considered

I don't think there is a workaround here. I assume that tiles may refresh on their own, but I dont know how often

Additional context

timvandam commented 4 months ago

Closing, seems like its something else causing the issue