Utility
API
getIn
Arguments | Type | Notes |
---|---|---|
obj |
| Typically the redux state. |
path |
| A keypath to the node in your state, |
Traverses to the node using a keypath. For example, given a page that looks like this:
To reach the comment body you could do this:
or find first by its attribute and value
The above would find the first occurrence where post_id=1
before continuing traversing.
Last updated