Rename to getPosts from getAllPosts
This commit is contained in:
@ -18,7 +18,7 @@ const load = async function () {
|
|||||||
|
|
||||||
let _posts;
|
let _posts;
|
||||||
|
|
||||||
export const getAllPosts = async () => {
|
export const getPosts = async () => {
|
||||||
_posts = _posts || load();
|
_posts = _posts || load();
|
||||||
|
|
||||||
return await _posts;
|
return await _posts;
|
Reference in New Issue
Block a user