MCPcopy Index your code
hub / github.com/immerjs/immer / loadPlugin

Function loadPlugin

src/utils/plugins.ts:72–77  ·  view source on GitHub ↗
(
	pluginKey: K,
	implementation: Plugins[K]
)

Source from the content-addressed store, hash-verified

70}
71
72export function loadPlugin<K extends keyof Plugins>(
73 pluginKey: K,
74 implementation: Plugins[K]
75): void {
76 if (!plugins[pluginKey]) plugins[pluginKey] = implementation
77}
78/** Map / Set plugin */
79
80export interface MapState extends ImmerBaseState {

Callers 3

enablePatchesFunction · 0.85
enableArrayMethodsFunction · 0.85
enableMapSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…