Polaris Resource List / Resource Item

HunkyBill
Shopify Expert
4359 36 462

What is the secret sauce to removing a Resource Item you no longer need in the list?

I have a button that when clicked tells the server to do some stuff. I get back an A-OK okay dokey, or a digital puke.

In the A-OK handler I would like to thus kill the resource item it belonged to, as it is no longer needed. But there is no way to say hocus-pocus delete that resource.

I do not want to ask the server for the list again, that seems dumb. So again, what do people do to kill resource items? Artifically I know I could litter the DOM with some crazy ID scheme, but that screams inelegant.

 

Custom Shopify Apps built just for you! hunkybill@gmail.com http://www.resistorsoftware.com
0 Likes