Skip to content

Commit

Permalink
fix(docs): readInlineData function (#4451)
Browse files Browse the repository at this point in the history
Summary:
> * pass a reference to an `inline` fragment, which can then be accessed (outside of the render phase) using the `readInlineData` function.

`readInlineData` is a function, not a directive.

Pull Request resolved: #4451

Reviewed By: captbaritone

Differential Revision: D50011992

Pulled By: alunyov

fbshipit-source-id: 56401b32f1eb771cf2f53f2799f6aee6941e8d50
  • Loading branch information
anmonteiro authored and facebook-github-bot committed Oct 6, 2023
1 parent 9b11ebc commit 9eb2747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/glossary/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ A directive that applies to fragments which enables developers to pass masked da
Normally, data is read out using `useFragment`. However, this function can only be called during the render phase. If store data is needed in a outside of the render phase, a developer has several options:
* read that data during the render phase, and pass it to the function/have the function close over that data. (See also [#relay])
* pass a reference to an `@inline` fragment, which can then be accessed (outside of the render phase) using the `readInlineData` directive.
* pass a reference to an `@inline` fragment, which can then be accessed (outside of the render phase) using the `readInlineData` function.
This directive causes them to be read out when the parent fragment is read out, and unmasked by the call to `readInlineData`.
Expand Down

0 comments on commit 9eb2747

Please sign in to comment.