Skip to content

Commit d68bd03

Browse files
committed
add docs for retain prop
1 parent 972dad1 commit d68bd03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# relay-query-lookup-renderer
22
Same as Relay Modern's QueryRenderer, but will check the store for data before fetching.
33

4-
Taken from react-relay QueryRenderer with one addition.
4+
Taken from react-relay QueryRenderer with two additions.
55
- lookup prop will check the relay store for data first and if present will immediately call `render` with props.
6+
- retain prop will prevent the component from garbage collecting when unmounted.
67

78
This will not be necessary if this PR is merged:
89
https://github.com/facebook/relay/pull/1760

0 commit comments

Comments
 (0)