@xhub-reels/sdk 0.2.13 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2927,10 +2927,13 @@ function ReelsFeedThumbnail({
2927
2927
  prewarmOnClick = true,
2928
2928
  getKey
2929
2929
  }) {
2930
- const { items, loading, error, refresh } = useFeed();
2930
+ const { items, loading, error, refresh, loadInitial } = useFeed();
2931
2931
  const { setFocusedIndexImmediate } = useResource();
2932
2932
  const { open } = useNavigation();
2933
2933
  const { adapters } = useSDK();
2934
+ react.useEffect(() => {
2935
+ loadInitial();
2936
+ }, [loadInitial]);
2934
2937
  const prefetchedRef = react.useRef(/* @__PURE__ */ new Set());
2935
2938
  const prewarm = react.useCallback(
2936
2939
  (item) => {
package/dist/index.js CHANGED
@@ -2921,10 +2921,13 @@ function ReelsFeedThumbnail({
2921
2921
  prewarmOnClick = true,
2922
2922
  getKey
2923
2923
  }) {
2924
- const { items, loading, error, refresh } = useFeed();
2924
+ const { items, loading, error, refresh, loadInitial } = useFeed();
2925
2925
  const { setFocusedIndexImmediate } = useResource();
2926
2926
  const { open } = useNavigation();
2927
2927
  const { adapters } = useSDK();
2928
+ useEffect(() => {
2929
+ loadInitial();
2930
+ }, [loadInitial]);
2928
2931
  const prefetchedRef = useRef(/* @__PURE__ */ new Set());
2929
2932
  const prewarm = useCallback(
2930
2933
  (item) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xhub-reels/sdk",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "High-performance Short Video / Reels SDK for React — optimized for Flutter WebView",
5
5
  "license": "MIT",
6
6
  "type": "module",