acdlite / recompose

A React utility belt for function components and higher-order components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: How do I type check shouldUpdate with flow

Tevinthuku opened this issue · comments

commented

Suppose I have

const optimize = compose(
  shouldUpdate(
    (prev, next) =>
      prev.alt !== next.alt ||
      prev.src !== next.src ||
  )
);

How do I type check optimize with flow ?

commented

Thanks, Closing this now