Utility
API
getIn
Arguments
Type
Notes
obj
Object
Typically the redux state.
path
String
A keypath to the node in your state, posts.post_id=1.comment.0.body
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
Was this helpful?