以下警告是什么意思?

What does the following warning mean?

以下警告是什么意思,我该如何解决它的原因?

Warning: Unimplemented primitive used:removeEventListener 

[@bs.val]
external addEventListener: (string, unit => unit) => unit = "addEventListener";
external removeEventListener: (string, unit => unit) => unit =
  "removeEventListener";

...

React.useEffect(() => {
  let handler = () => dispatch(ToggleMenu(false));
  addEventListener("popstate", handler);
  Some(() => removeEventListener("popstate", handler));
});

声明绑定时 removeEventListener 前面缺少 [@bs.val]

[@bs.val]
external addEventListener: (string, unit => unit) => unit = "addEventListener";
[@bs.val]
external removeEventListener: (string, unit => unit) => unit =
  "removeEventListener";

有时很难看到这一点,因为 linter 总是在四处移动线;)

资料来源:几分钟前我也运行进入了这个。