Skip to content

How to get collections in Footer? #2127

Closed Answered by blittle
rayjay8 asked this question in Help
Discussion options

You must be logged in to vote

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 to Footer.jsx with useLoaderData() and render the collections.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rayjay8
Comment options

Answer selected by macpham
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants