1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/src/common/libs-config.ts
Roman 95794af5b2 migration additions -- part 2
Signed-off-by: Roman <ixrock@gmail.com>
2021-04-20 12:24:06 +03:00

14 lines
426 B
TypeScript

// Global configuration setup for external packages.
// Should be imported at the top of app's entry points.
import { configure } from "mobx";
import { enableMapSet, setAutoFreeze } from "immer";
// Mobx
configure({
enforceActions: "never", // allows to skip using @action when class-method updates some state
});
// Immer
setAutoFreeze(false); // allow to merge observables
enableMapSet(); // allow merging maps and sets