perf: memo
This commit is contained in:
parent
4a0b42fbe5
commit
170a874faf
|
@ -1,6 +1,8 @@
|
|||
import {memo} from 'react';
|
||||
|
||||
import Dialogues from './dialogues.jsx';
|
||||
|
||||
export default function Entity({camera, entity, scale}) {
|
||||
function Entity({camera, entity, scale}) {
|
||||
return (
|
||||
<>
|
||||
{entity.Interlocutor && (
|
||||
|
@ -12,4 +14,6 @@ export default function Entity({camera, entity, scale}) {
|
|||
)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default memo(Entity);
|
||||
|
|
Loading…
Reference in New Issue
Block a user