- 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 { navigate } from 'gatsby';
import React, { useContext, useEffect, useMemo, useState } from 'react';
import React, { memo, useContext, useEffect, useMemo, useState } from 'react';
import { toast } from 'react-toastify';
import Artboard from '../../components/builder/center/Artboard';
import LeftSidebar from '../../components/builder/left/LeftSidebar';
@ -51,4 +51,4 @@ const Builder = ({ id }) => {
}, [loading]);
};
export default Builder;
export default memo(Builder);