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

Nikita

Arguments

Nikita stores the original arguments passed on an action call. They are accessible inside the action handler in the args property as an array with the preserved order:

nikita
// Call an action
.call({
  my_config: 'my value'
}, ({args}) => {
  // Access to the original arguments
  console.info(args[0]) // { my_config: 'my value' }
  console.info(typeof args[1]) // function
})
Edit on GitHub
Navigate
About

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