`StateSnapshot.withReuse` should accept `SetStateFnPure`
japgolly opened this issue · 0 comments
japgolly commented
val setCreateProjectText: Reusable[SetStateFnPure[String]] =
Reusable.fn.state($ zoomStateL State.createProjectText).setStateFn
StateSnapshot.withReuse(s.createProjectText)(setCreateProjectText),
[error] found : japgolly.scalajs.react.Reusable[japgolly.scalajs.react.SetStateFnPure[shipreq.Predef.String]]
[error] (which expands to) japgolly.scalajs.react.Reusable[japgolly.scalajs.react.SetStateFn[japgolly.scalajs.react.util.DefaultEffects.Sync,japgolly.scalajs.react.util.DefaultEffects.Async,String]]
[error] required: japgolly.scalajs.react.Reusable[japgolly.scalajs.react.extra.StateSnapshot.SetFn[shipreq.Predef.String]]
[error] (which expands to) japgolly.scalajs.react.Reusable[(Option[String], japgolly.scalajs.react.callback.CallbackTo[Unit]) => japgolly.scalajs.react.callback.CallbackTo[Unit]]
[error] StateSnapshot.withReuse(s.createProjectText)(setCreateProjectText),