Skip to content

Commit 69bc2ea

Browse files
committed
Document changes to fromNode that allow the return fn to be partially applied in some cases
1 parent de54156 commit 69bc2ea

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/src/pages/docs/crocks/Async.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,14 @@ As such, the need for binding may arise. `fromNode` provides a second, optional
379379
argument that takes the context that will be used to bind the function being
380380
wrapped.
381381

382-
Any curried interface will not be respected and if a curried interface is needed
383-
then [`nAry`][nary] can be used.
382+
The function returned from `fromNode` will be automatically curried, allowing you
383+
to partially apply the function so long as the arity of the original function given
384+
to `fromNode` can be determined via its `.length` property.
385+
386+
In practice this means that functions defined via `compose` or those making use
387+
of `argument`, spread args (`...args`) or default values for parameters, will not be
388+
good candidates for partial application.
389+
384390

385391
<!-- eslint-disable no-console -->
386392
<!-- eslint-disable no-sequences -->

0 commit comments

Comments
 (0)