2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-06-06 00:44:25 +00:00
Files
InvenTree/docs/docs
Xhivo 2e4bf3739f Add HMR and React Fast Refresh support (#12060)
* Add HMR and React Fast Refresh support

* Run pre-commit hooks

* Fix 'hmrSetModule' module loading

The incoming module needs to include the URL from which it was loaded,
so that it's possible to enforce only loading modules imported from the same
pathname as the current module.

* Add error handling and improvements

- Add error handling to `useRemotePlugin` and simplify `RemoteComponent`
- Improve HMR to use a registry instead of a single global callback.
  This should now handle two legacy plugin entry points being used at
  the same time via RemoteComponent.

* Update docs

* Update CHANGELOG

* Remove use of LanguageContext from RemoteComponent

LanguageContext should not be necessary here, as it's provided in
ThemeContext, which is used in InvenTree's frontend entry.

* Fix incorrect import.meta.hot access

* Update Playwright test to match UI text changes

---------

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
2026-06-05 23:21:12 +10:00
..
2026-05-22 17:08:40 +10:00
2026-06-04 22:19:28 +10:00
2025-12-11 16:19:47 +11:00
2026-06-04 22:19:28 +10:00
2026-05-24 10:05:06 +10:00
2025-10-26 17:16:59 +11:00
2026-04-11 12:03:58 +10:00
2026-05-30 23:00:52 +10:00
2026-05-31 10:09:17 +10:00
2026-05-27 23:41:40 +10:00
2024-03-02 11:28:37 +11:00
2023-04-22 23:35:25 +10:00
2024-10-27 10:51:51 +11:00
2025-04-22 08:18:32 +10:00
2023-04-22 22:40:29 +10:00
2026-05-26 07:03:38 +10:00
2025-11-26 21:27:13 +11:00