Skip to content

Commit 4f08531

Browse files
committed
added staletime
1 parent 7b79a8a commit 4f08531

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

reactjsfoundations.com/src/WpBlog.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ function ReactBlog(props) {
3737
return res.json();
3838
});
3939
},
40-
[page]
40+
{
41+
staleTime: 1000,
42+
}
4143
);
4244

4345
const handlePrevPage = () => {

0 commit comments

Comments
 (0)