Files
SCM-Manager/scm-ui/ui-api/src
Konstantin Schaper 01bff1ce95 Fix race condition with plugin bundles
There may be a race condition when loading plugin bundles with lazy dependencies:

The OpenAPI plugin depends on "redux" and "react-redux", which are bundled in the lazy "ui-legacy" module, as the usage of redux is deprecated in the scmm. The "ui-legacy" module also binds a global wrapper extension point around the whole app. Due to a bug in the plugin loader, plugin bundles were marked as successfully loaded even if a lazy dependency hadn't successfully loaded yet. This caused the extension point from the "ui-legacy" bundle to be bound after the initial render. As the process of extension point binding  doesn't trigger a re-render, the redux provider was not wrapped around the app on initial load. When the user now moved focus out of and back into the window, react-query hooks automatically refetched e.g. the index links, which caused a re-render. Now with the bound extension point applied. This caused the whole app to be unmounted and re-mounted, which in turn reset all form fields anywhere below in the tree.

Also fixes a bug where the global notifications component was executing a state update while already unmounted.

Also fixes a bug in the user creation form where an object literal was passed to the form's default values which caused a form reset whenever the component re-rendered.

Committed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-05-15 17:34:50 +02:00
..
2021-11-04 09:16:08 +01:00
2021-11-04 09:16:08 +01:00
2021-11-10 10:10:17 +01:00
2022-03-10 09:39:17 +01:00
2023-04-03 10:02:17 +02:00
2023-03-22 11:17:22 +01:00
2021-11-04 09:16:08 +01:00
2021-11-04 09:16:08 +01:00
2021-11-04 09:16:08 +01:00
2021-04-30 16:13:19 +02:00
2022-03-10 09:39:17 +01:00
2021-11-04 09:16:08 +01:00
2022-06-22 11:49:26 +02:00
2021-11-04 09:16:08 +01:00
2021-11-04 09:16:08 +01:00
2021-11-04 09:16:08 +01:00
2021-11-04 09:16:08 +01:00
2021-06-15 15:36:21 +02:00
2021-11-04 09:16:08 +01:00
2021-06-16 14:45:40 +02:00
2022-08-04 12:14:46 +02:00
2021-11-04 09:16:08 +01:00
2023-02-09 10:29:05 +01:00