MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / getDepChange

Function getDepChange

web/pgadmin/static/js/SchemaView/SchemaState/common.js:358–369  ·  view source on GitHub ↗
(currPath, newState, oldState, action)

Source from the content-addressed store, hash-verified

356}
357
358export const getDepChange = (currPath, newState, oldState, action) => {
359 if(action.depChange) {
360 newState = action.depChange(currPath, newState, {
361 type: action.type,
362 path: action.path,
363 value: action.value,
364 oldState: _.cloneDeep(oldState),
365 listener: action.listener,
366 });
367 }
368 return newState;
369};
370
371// It will help us generating the flat path, and it will return the same
372// object for the same path, which will help with the React componet rendering,

Callers 1

sessDataReducerFunction · 0.90

Calls 1

depChangeMethod · 0.80

Tested by

no test coverage detected