contentful / ui-extensions-sdk

A JavaScript library to develop custom apps for Contentful
https://www.contentful.com/developers/docs/extensibility/app-framework/
MIT License
126 stars 31 forks source link

Navigator callback event #191

Closed JorgeLGonzalez closed 4 years ago

JorgeLGonzalez commented 5 years ago

What's the best way for a custom extension app to get notified when a navigator slide-in dialog closes? The docs state that navigator.openEntry (for example) returns a promise that resolves when the dialog opens, but I'm looking for something that tells me when the dialog closes so that my code knows the entry in question may have changed and an update may be needed.

suevalov commented 5 years ago

Hi @JorgeLGonzalez,

Thanks for the question! There is no convenient way to receive close notification, but this issue is at the top of our backlog and we hope to add this method soon. Keep posted!

bezoerb commented 5 years ago

Are there already any updates on this one? Is there a possibility to open up a PR to fix this? /cc @jelz @suevalov

thejawker commented 5 years ago

What is the current status on this one? Thanks!

ericfennis commented 5 years ago

Any news on this one? Or a work around?

We're working on a custom entry with conditional assets fields, but we're are stuck with receiving changes when an assets is changed.

We tried to use the onValueChange event, but that not working for assets. Only the change will be fired when an id is changed.

suevalov commented 4 years ago

Going to be released soon in 3.10.3

suevalov commented 4 years ago

Released in 3.10.3.

For details: https://github.com/contentful/ui-extensions-sdk/pull/259/commits/a587f9cb5771c9a8022ef48418fa352444ba5aed