Data: A helpful performance warning for developers in the ‘useSelect’ hook
useSelect is a React hook that lets you subscribe to WordPress data in the block editor. It checks if consumed data has changed and then rerenders your components accordingly. Usually, things just work, and consumers don’t have to worry about unnecessary rerenders. However, sometimes data is directly manipulated in the mapSelect callback, which can mislead the useSelect hook into thinking … Continue reading Data: A helpful performance warning for developers in the ‘useSelect’ hook
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed