Ictx
handler context
interface Ictx {
concurrent?: any;
isLocal?: boolean;
popIndex?: number;
pushIndex?: number;
userId?: string;
}
index
properties
Properties
concurrent ?
only in updates, concurrent values for the same path if any. these can be added to ui to show there was a conflict. note the returned update value is uniform across all users this field only serves to show alternative values and can be ignored.
anyisLocal ?
true if local
booleanpopIndex ?
if in setActions there is a pop operation. the corresponding handler will have a popIndex basically turning a pop to delete | shift
numberpushIndex ?
if in setActions there is a push operation. the handler will function will have a pushIndex basically turning a push to insert | shift
numberuserId ?
userid that triggered change
string