Skip to content

Commit cd1b32f

Browse files
committed
adding staletime to blog query
1 parent 129ade5 commit cd1b32f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

reactjsfoundations.com/src/WpBlogWidget.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ function ReactBlog(props) {
3131
return res.json();
3232
});
3333
},
34+
{
35+
staleTime: 1000,
36+
},
3437
[page]
3538
);
3639

0 commit comments

Comments
 (0)