# useCreateNestedOptimisticActions

**Category:** Base Components/Collections/NestedTable

## API

### Overview

A React hook that returns a function to create [OptimisticActions](./?path=/story/features-actions-updates--collectionoptimisticactions) instance for a nested table collection created in the `levels.createCollection` prop of [useNestedTable](./?path=/story/base-components-collections-nestedtable--usenestedtable).

For additional information and how to use it, see [Node API usage example](./?path=/story/base-components-collections-nestedtable--nestedtable#Node_API_usage)


### Props

| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| `collection` | `CollectionState<T, F>` | Yes | - | @required The collection that is created by [NestedTableLevel.createCollection](./?path=/story/base-components-collections-nestedtable--nestedtablelevel). |
| `state` | `unknown` | Yes | - | The state object that passed to the [NestedTableLevel.createCollection](./?path=/story/base-components-collections-nestedtable--nestedtablelevel) - this must be passed here. |
| `params` | `CollectionOptimisticActionsBaseParams<T, F>` | No | - | Additional [OptimisticActions](./?path=/story/features-actions-updates--useoptimisticactions) configuration. |

