Merge pull request #4436 from tchak/component-rendering-fix

Fix infinit rerendering of TypeDeChamp component
This commit is contained in:
LeSim 2019-10-24 14:19:36 +02:00 committed by GitHub
commit 3afcdcd9f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,7 @@ const TypeDeChamp = sortableElement(
!isHeaderSection && !isExplication && !state.isAnnotation;
const [ref, inView] = useInView({
threshold: [0.6]
threshold: 0.6
});
const updateHandlers = createUpdateHandlers(