chore: opt
This commit is contained in:
parent
4a14a541e1
commit
495856147b
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue
Block a user