Skip to content

Commit

Permalink
Merge pull request #1249 from iamchanii/first-use
Browse files Browse the repository at this point in the history
docs: update documentation about onFirstUse method
  • Loading branch information
hayes authored Jul 17, 2024
2 parents 50c16d0 + 0f8d8ac commit 0fdcfd5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/content/docs/guide/writing-plugins.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,7 @@ Removing whole types from the schema needs to be done by transforming the schema
- `builder.configStore.onTypeConfig`: Takes a type ref and a callback, and will invoke the callback
with the config for the referenced type once available.
- `builder.configStore.onFieldUse` Takes a field ref \(returned by a field builder\) and a callback
to invoke once the config for the field is available.
- `fieldRef.onFirstUse` Takes a callback to invoke once the config for the field is available.
- `buildCache.getTypeConfig` Gets the config for a given type after it has been passed through any
modifications applied by plugins.

0 comments on commit 0fdcfd5

Please sign in to comment.