Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.


Parent action

Nikita stores the hierarchical tree of the actions running in a Nikita session. The parent is an action of the higher level in the session tree. All Nikita's actions have a parent action except the root Nikita action instantiating a Nikita session.

The parent action is accessed inside the action handler in the parent property of the first argument. It is an object containing all the action properties.

// Call an action
.call(({parent}) => {
  // Print the parent action
Edit on GitHub

Nikita is an open source project hosted on GitHub and developed by Adaltas.