Ictx

handler context

tsinterface Ictx {
  concurrent?: any;
  isLocal?: boolean;
  popIndex?: number;
  pushIndex?: number;
  userId?: string;
}

index

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.

tsany

isLocal ?

true if local

tsboolean

popIndex ?

if in setActions there is a pop operation. the corresponding handler will have a popIndex basically turning a pop to delete | shift

tsnumber

pushIndex ?

if in setActions there is a push operation. the handler will function will have a pushIndex basically turning a push to insert | shift

tsnumber

userId ?

userid that triggered change

tsstring