mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-11-25 15:29:54 +00:00
Pass object instead of array in context provider
This commit is contained in:
1 parent
2b94b40bf3
commit
b69ced8ce0
10 files changed
+15
-13
No files matched your search
@@ -23,7 +23,7 @@ const displaySection = () => {
|
||||
|
||||
const Blog = () => {
|
||||
const [articles, setArticles] = useState(null);
|
||||
const [loading] = useContext(LoadingContext);
|
||||
const { loading } = useContext(LoadingContext);
|
||||
|
||||
useEffect(() => {
|
||||
if (displaySection()) {
|
||||
|
||||
Reference in new issue
Block a user