- memoize all components

- implement metadata context
This commit is contained in:
Amruth Pillai
2020-07-09 14:00:18 +05:30
parent 9e98da038c
commit 3aaef5f730
71 changed files with 489 additions and 396 deletions

View File

@ -1,5 +1,5 @@
import firebase from 'gatsby-plugin-firebase';
import React, { createContext, useContext, useRef } from 'react';
import React, { createContext, memo, useContext, useRef } from 'react';
import { toast } from 'react-toastify';
import { isFileImage } from '../utils';
import { useDispatch, useSelector } from './ResumeContext';
@ -84,4 +84,6 @@ const StorageProvider = ({ children }) => {
export default StorageContext;
export { StorageProvider };
const memoizedProvider = memo(StorageProvider);
export { memoizedProvider as StorageProvider };