Skip to content

Commit

Permalink
making the loader data tracing friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsbajorics committed May 6, 2024
1 parent 77aaeb8 commit fda1b53
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions app/routes/_index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ export const TestimonialCard = ({
)

export default function LandingPage() {
const {
testimonials,
recommendedProducts,
featuredCollections,
} = useLoaderData()
const loaderData = useLoaderData()
const { testimonials } = loaderData
const { recommendedProducts } = loaderData
const { featuredCollections } = loaderData

return (
<Column>
<div
Expand Down
9 changes: 4 additions & 5 deletions app/routes/trippy-trails-template.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ export async function loader({ params, context }) {
}

export default function LandingPage() {
const {
testimonials,
recommendedProducts,
featuredCollections,
} = useLoaderData()
const loaderData = useLoaderData()
const { testimonials } = loaderData
const { recommendedProducts } = loaderData
const { featuredCollections } = loaderData

return (
<Column>
Expand Down

0 comments on commit fda1b53

Please sign in to comment.