import * as lyraActions from '../actions/lyraActions' ; import { Dispatch } from 'redux' ; import { State } from '../store' ; export function assignId ( dispatch , state ) { const id = state . getIn ( [ 'lyra' , 'idCounter' ] ) ; dispatch ( lyraActions . incrementCounter ( ) ) ; return id ; }