Timeline for How to query multiple post types inside Gutenberg options panel?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 27, 2022 at 21:00 | history | tweeted | twitter.com/StackWordPress/status/1486806258581741573 | ||
Jan 27, 2022 at 18:36 | answer | added | Kalle | timeline score: 2 | |
Feb 13, 2021 at 13:54 | vote | accept | dingo_d | ||
Feb 11, 2021 at 13:16 | comment | added | dingo_d |
@TomJNowell it was the below code but without all the checks for empty values and the isResolving check, so when I tried to return the item.title.rendered it threw an error about it being undefined and that broke things.
|
|
Feb 11, 2021 at 12:38 | comment | added | Tom J Nowell♦ | @dingo_d can you add that code so we can debug it? | |
Feb 11, 2021 at 9:45 | answer | added | dingo_d | timeline score: 6 | |
Feb 11, 2021 at 7:49 | comment | added | dingo_d |
I tried looping it, but I got some mapSelect error. The calls inside the useSelect gets called multiple times (not sure why), first it returns empty array, then after some time I get the filled array of posts.
|
|
Feb 10, 2021 at 17:29 | comment | added | kero |
Why not just do one getEntityRecords call per post type?
|
|
Feb 10, 2021 at 17:11 | history | asked | dingo_d | CC BY-SA 4.0 |