Commit fb2fe3d
Social: Fix
* 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@f9ba8eduseSelect warning in useSocialPreviewPostData (#46417)1 parent ea9f32a commit fb2fe3d
File tree
5 files changed
+52
-52
lines changed- build
5 files changed
+52
-52
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments