Skip to content

Commit fb2fe3d

Browse files
grzegorz-cpmatticbot
authored andcommitted
Social: Fix useSelect warning in useSocialPreviewPostData (#46417)
* Social: Fix `useSelect` warning in `useSocialPreviewPostData` This fixes the warning, "The `useSelect` hook returns different values when called with the same state and parameters." * Avoid fetching if there are no media IDs. * Add unit tests Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/20729219512 Upstream-Ref: Automattic/jetpack@f9ba8ed
1 parent ea9f32a commit fb2fe3d

File tree

5 files changed

+52
-52
lines changed

5 files changed

+52
-52
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-url'), 'version' => '2d4daba831ea8b55fd3e');
1+
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-url'), 'version' => '56445d9521bfec2a414a');

build/editor-jetpack-sidebar.js

Lines changed: 48 additions & 48 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-url'), 'version' => '30fd3c78e7d3f71285fc');
1+
<?php return array('dependencies' => array('jetpack-connection', 'jetpack-script-data', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom-ready', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-url'), 'version' => '8f636ce9c682c7067d64');

build/editor-social-sidebar.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
],
2929
"dependencies": {
3030
"@automattic/jetpack-analytics": "^1.0.6",
31-
"@automattic/jetpack-publicize-components": "^1.10.0",
31+
"@automattic/jetpack-publicize-components": "^1.10.1-alpha",
3232
"@wordpress/api-fetch": "7.36.0",
3333
"@wordpress/i18n": "6.9.0",
3434
"jquery": "3.7.1"

0 commit comments

Comments
 (0)