Where is getSite selector defined?
While digging recently on how to find site url from block editor, I found this article, where I found my answer, as site url is a property of object getSite
returns.
Now, I searched through the Gutenberg code (trunk version from github) to find definition of getSite
selector, but I was unable to find it’s definition.
Can someone point me to definition of this selector in code, I want to inspect code a little better to see what paramater (if any) does it take?
P.S.
most of the selectors in ‘core’ store are defined in gutenberg/packages/core-data/src/selectors.ts, but this is not, yet, it is present in the store.
Leave an answer