fancytree 동기 비동기 에러

정태민·2023년 5월 19일
0

오답노트

목록 보기
10/10

Uncaught Error: Fancytree assertion failed: deactivate was out of sync?
at Function.error (:2:2616)
at _assert (:175:6)
at Fancytree.nodeSetActive (:4982:7)
at Fancytree._superApply (:319:22)
at Fancytree.nodeSetActive (:10626:9)
at Fancytree.nodeSetActive (:332:22)
at Fancytree._callHook (:2748:14)
at HTMLTableElement. (:10613:15)
at HTMLTableElement.dispatch (:2:43064)
at v.handle (:2:41048)

팬시트리에서 해당 노드를 삭제 후에 다시 생성하면 ui가 깨지는 사이드이팩트가 발생하여 확인

노드를 생성 한 후에 selected 시키는데. 생성하는 함수가 동기적으로 동작하더라도. rendering에서 비동기가 껴있었다.

일단 껴있는 비동기 함수를 await 시켜서 해결..

profile
퇴근후 30분 출근전 30분

0개의 댓글