mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
14 lines
426 B
TypeScript
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
|