Skip to content

Commit

Permalink
docs: fix typo in resolvePermissions example
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Jan 21, 2025
1 parent 3eb632b commit 51219fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ An object describing the [AppState](/docs/api-reference/app-state).
An object describing which props have changed on this component since the last time this function was called. This helps prevent duplicate calls when making async operations.

```tsx copy {2-4} /changed/1 filename="Example only updating the permissions when 'example' prop changes"
const resolveFields = async ({ props }, { changed, lastPermissions }) => {
const resolvePermissions = async ({ props }, { changed, lastPermissions }) => {
if (!changed.example) {
return lastPermissions; // Return the last permissions unless the `example` prop has changed
}
Expand Down

0 comments on commit 51219fa

Please sign in to comment.