fixing warning in local environment

This commit is contained in:
Muhammad Shoaib Riaz
2020-10-07 01:24:12 +05:00
parent cc962a940a
commit f59987241f
2 changed files with 16817 additions and 4 deletions
+7 -4
View File
@@ -5,6 +5,7 @@ import links from "../constants/page-links"
import gsap from "gsap"
import axios from "axios"
import { Link } from "gatsby"
import { act } from "react-dom/test-utils"
const Header = props => {
const fetchData = async () => {
@@ -14,10 +15,12 @@ const Header = props => {
const { stargazers_count, forks_count } = response.data
setstats({
starsCount: stargazers_count,
forksCount: forks_count,
})
act(() =>
setstats({
starsCount: stargazers_count,
forksCount: forks_count,
})
)
}
const [stats, setstats] = useState({
+16810
View File
File diff suppressed because it is too large Load Diff