chore: opt

This commit is contained in:
cha0s 2021-04-07 17:37:04 -05:00
parent 4a14a541e1
commit 495856147b

View File

@ -19,7 +19,7 @@ const Collider = ({
}) => {
const latus = useLatus();
const patch = useJsonPatcher();
const [context, setContext] = useState(entity.createContext());
const [context, setContext] = useState(() => entity.createContext());
useEffect(() => {
const createContext = async () => {
setContext(entity.createContext({