Changed useNetworkState to implement a partial update mechanism
This commit is contained in:
9
src/helpers/diff.js
Normal file
9
src/helpers/diff.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { applyChange, diff as deepDiff } from "deep-diff";
|
||||
|
||||
export function applyChanges(target, changes) {
|
||||
for (let change of changes) {
|
||||
applyChange(target, true, change);
|
||||
}
|
||||
}
|
||||
|
||||
export const diff = deepDiff;
|
||||
Reference in New Issue
Block a user