docs(thunk): describe renderFn invocation condition

Co-authored-by: Shahar Dawn Or <mightyiampresence@gmail.com>
pull/599/head
Serhii Khoma 5 years ago committed by GitHub
parent 0522408f43
commit d9c4abd7c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -583,6 +583,8 @@ arguments.
`thunk(selector, key, renderFn, [stateArguments])`
The `renderFn` is invoked only if the `renderFn` is changed or `[stateArguments]` array length or it's elements are changed.
The `key` is optional. It should be supplied when the `selector` is
not unique among the thunks siblings. This ensures that the thunk is
always matched correctly when diffing.

Loading…
Cancel
Save