implement tanstack and fetch all data
This commit is contained in:
@@ -540,6 +540,8 @@ LLMs are powerful tools, but they require thoughtful implementation. Start with
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
|
||||
export const getPostBySlug = (slug: string): BlogPost | undefined => {
|
||||
return blogPosts.find(post => post.slug === slug);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user