-
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.
Create a JS version of Page List for the editor (#31670)
* Create a JS version of Page List for the editor * Fix lint errors and remove setAttributes() calls * Split page fetching into a hook * Add navigation submenu markup * Use per_page=-1 * Sort by menu_order,post_title * Add back 'No pages to show' message * Fix component not updating after fetch * Remove TODOs * Remove unused context attributes * Update snapshot * Fix typo in comment * Remove unnecessary isNavigationChild checks * Access navigation settings via context, not attributes * Add loading state * Memoize PageItems Co-authored-by: Robert Anderson <[email protected]>
- Loading branch information
1 parent
e6c91b9
commit fd5d963
Showing
4 changed files
with
189 additions
and
173 deletions.
There are no files selected for viewing
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
Oops, something went wrong.