Skip to content

Feat/csid30016 perso carousel#8

Open
mbartos00 wants to merge 15 commits intomainfrom
feat/CSID30016-Perso-carousel
Open

Feat/csid30016 perso carousel#8
mbartos00 wants to merge 15 commits intomainfrom
feat/CSID30016-Perso-carousel

Conversation

@mbartos00
Copy link
Copy Markdown
Collaborator

@mbartos00 mbartos00 commented Feb 18, 2026

What's the purpose of this pull request?

Add perso carousel component

How does it work?

https://github.com/user-attachments/assets/81f466b0-e37a-401b-97be-684287d7b524
Fallback items
image

Comment thread src/components/sections/PersoCarousel/NavigationIconLeft.tsx Outdated
Comment thread src/components/sections/PersoCarousel/NavigationIconRight.tsx Outdated
Comment thread src/hooks/useIsMobile.tsx Outdated
Comment thread src/components/index.tsx
}
}, [inView, items, campaignId]);

const isLoading = (loading && items.length > 0) || fallbackLoading;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loading && items.length > 0, why items.length > 0 defines loading state?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its workaround, because even when the console displays 500 error, we have loading true. Both the useQuery and request functions from .faststore do not return any error, so this check in useRecommendations hook will not work loading: !data?.syneriseAIRecommendations.recommendations?.data && !error,.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants