From d9c4abd7c5b166ff7abd705fc920eb0933b9f0a0 Mon Sep 17 00:00:00 2001 From: Serhii Khoma Date: Sat, 16 May 2020 06:07:09 +0300 Subject: [PATCH] docs(thunk): describe renderFn invocation condition Co-authored-by: Shahar Dawn Or --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7c85889..2caded7 100644 --- a/README.md +++ b/README.md @@ -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.