-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Nav Block bug as Contributor user via fix to `*loadPostTypeEntiti…
…es` (#18669) * Utilise view context to ensure access to all post types. * Allow context to be overidden in query args * Set Nav to use “view” REST API context * Revert "Utilise view context to ensure access to all post types." This reverts commit 83ff2c8. * Revert "Allow context to be overidden in query args" This reverts commit f800f86. * Revert "Set Nav to use “view” REST API context" This reverts commit d77bd46. * Initial naive refactor to use apiFetch directly. * Improves handling of API request and adds comments * Fix errors from conflict solving. * lint * Extracted fetch hook * Added jsdoc * Change API pattern. * Clean up booleans and conditions * Move hook to api-fetch package * Attach hook to default export * Reset state before fetching, don't guess data type Co-authored-by: tellthemachines <[email protected]>
- Loading branch information
1 parent
3425305
commit f2b6778
Showing
4 changed files
with
68 additions
and
32 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters