-
I want to get all collections of my store and display them in my Footer.jsx, how do I do it? |
Beta Was this translation helpful? Give feedback.
Answered by
blittle
May 17, 2024
Replies: 1 comment 1 reply
-
You'll need query the SFAPI for collections in one of your loaders (if it's the same footer in all of your pages, the do it inside |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
macpham
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll need query the SFAPI for collections in one of your loaders (if it's the same footer in all of your pages, the do it inside
root.jsx
). Then pass the data from the loader toFooter.jsx
withuseLoaderData()
and render the collections.