> For the complete documentation index, see [llms.txt](https://vytautaspranskunas.gitbook.io/react-state-rxjs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vytautaspranskunas.gitbook.io/react-state-rxjs/different-scenarios/passing-list-item-index-via-router.md).

# Passing list item index via router

There can be situation when list item is on page and its details on another. So question is how to deal with `stateIndex`. For this case you can pass list item index along with url params and on target component catch it and assign to `stateIndex`

```typescript
export class TodoDescription extends React.Component<any, any> implements HasStateActions<TodoStateActions> {
    actions: TodoStateActions;
    statePath: any;
    get stateIndex() {
        return '0' // param comming from router or any other source
    };
}
```
