Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

Commit 095072a

Browse files
derekjuberfusion-bot[bot]
authored and
fusion-bot[bot]
committed
Use required context parameter for InitialStateType
#132
1 parent 2b2af7b commit 095072a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ A function that gets initial state asynchronously without triggering actions. Op
151151
###### Types
152152

153153
```flow
154-
type InitialState = () => Promise<State> | State
154+
type InitialState = (ctx: Context) => Promise<State> | State
155155
```
156156

157157
---

src/tokens.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type {Token, Context} from 'fusion-core';
1313

1414
import type {ReactReduxServiceType} from './types.js';
1515

16-
type InitialStateType<TState> = (ctx?: Context) => Promise<TState> | TState;
16+
type InitialStateType<TState> = (ctx: Context) => Promise<TState> | TState;
1717

1818
export const ReduxToken: Token<ReactReduxServiceType> = createToken(
1919
'ReduxToken'

0 commit comments

Comments
 (0)