Reloads now works without duplicating posts
This commit is contained in:
parent
57b876bf05
commit
605d0990d3
1 changed files with 1 additions and 1 deletions
|
@ -29,8 +29,8 @@ export function PostsContainer(): JSX.Element {
|
||||||
|
|
||||||
function onRefresh(): void {
|
function onRefresh(): void {
|
||||||
setRefreshing(true);
|
setRefreshing(true);
|
||||||
|
setPostData([]);
|
||||||
setPage(0);
|
setPage(0);
|
||||||
setPostData(postData.slice(0, 10));
|
|
||||||
setRefreshing(false);
|
setRefreshing(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue