Skip to content

Added timesSettled & resolve synchronous callbacks

Compare
Choose a tag to compare
@MZanggl MZanggl released this 22 Jan 13:06
· 32 commits to master since this release

Added

"timesSettled" is a new member of the state and it holds a count how many times load() was settled.

Fixed

Code like this crashed

promistate(id => {
  return id ? fetch('...') ? null
})

because it was expected that the callback always returns a promise.