When a data is updated on the store by a GET, a PATCH, a PUT or a POST, it should tell the components that are making use of that resource, so that they update their UI accordingly.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
This issue is one of the most problematic one regarding the SIB app. It creates a lot of UX problems in the app, and working around them has proven to be nearly impossible.
By Alexandre on 2019-11-18T18:59:26 (imported from GitLab project)
@alexandre what do you mean by there is no workaround?
I agree that there is no easy fix, but solutions exists. As @jbpasquier did in the sib-app, when a resource is updated:
on save, do sibForm.component.resource.clearCache() where sibForm is the form you used to edit the resource -> remove the resource from the cache
sibDisplays.forEach(sibDisplay => sibDisplay.data-src = sibDisplay.data-src) where the sibDisplays are all the component which are related to this resource -> reload all the sibDisplays to fetch the new resource
@jbpasquier : It seems we don't have the choice to trigger a app refresh if the framework isn't ready. We can't assume the user will understand that the newly created circle, or the newly added member, or what not, is actually here but not really here until she manually refreshes the app.
By Alexandre on 2019-11-21T13:24:40 (imported from GitLab project)
I'm not sure to understand. What we discussed together has been deleted @jbpasquier? If not, we had a working example right? Or not fully functional maybe?