How to trigger a page refresh in the Admin UI after a Lifecycle Hook?

I maby found a solution.
You could register a injectContentManagerComponent in a plugin and register a react component to inject into a injection zone inside of the ContentManager edit window. inside of the injection zone you could call window.location.reload() what will trigger a reload of the whole page you should be able to see initialData from useCMEditViewDataManager change as soon as you save it should change.
You should be able to use that to check for when a save happens and call a reload.

3 Likes