Data: withSelect throws "Invalid hook call" React error #17805
Labels
[Package] Data
/packages/data
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
Describe the bug
When trying to use
withSelect
from@wordpress/data
(in a WP plugin code), error is thrown by React:To reproduce
A. Locally with a WP setup: recreate the basic example to display authors
B. Or, see reproduction on codesandbox
Expected behavior
Error is not thrown.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: