Skip to content

Commit

Permalink
no need for warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Jun 10, 2024
1 parent e7d89ae commit a8d20ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ReasonReactErrorBoundary.re
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ type params('error) = {

[@mel.scope "Object"] external objCreate: 'a => Js.t({..}) = "create";

[@ocaml.warning "-69"]
type state('error) = {error: params('error)};
type reactComponentClass;

[@mel.module "react"] external component: reactComponentClass = "Component";
Expand All @@ -25,7 +23,6 @@ type componentPrototype;
external componentPrototype: reactComponentClass => componentPrototype =
"prototype";

[@ocaml.warning "-21"]
let errorBoundary =
[@mel.this]
(
Expand All @@ -45,7 +42,7 @@ external setComponentDidCatch:

setComponentDidCatch(errorBoundary, [@mel.this] (self, error, info) => {
self##setState({
error: {
"error": {
error,
info,
},
Expand Down

0 comments on commit a8d20ef

Please sign in to comment.