chore: opt
This commit is contained in:
parent
4a14a541e1
commit
495856147b
|
@ -19,7 +19,7 @@ const Collider = ({
|
||||||
}) => {
|
}) => {
|
||||||
const latus = useLatus();
|
const latus = useLatus();
|
||||||
const patch = useJsonPatcher();
|
const patch = useJsonPatcher();
|
||||||
const [context, setContext] = useState(entity.createContext());
|
const [context, setContext] = useState(() => entity.createContext());
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const createContext = async () => {
|
const createContext = async () => {
|
||||||
setContext(entity.createContext({
|
setContext(entity.createContext({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user