undox icon indicating copy to clipboard operation
undox copied to clipboard

API proposal: merge undox argument into object.

Open Buggytheclown opened this issue 3 years ago • 1 comments

If i want to pass limit config i need to add "initAction" and "comparator" explicitly or as undefined

undox(
  _counterReducer,
  { type: "undox/INIT" },
  (_) => false,
  {
    past: 2,
    future: Infinity
  }
)

I want to be able to pass only needed args, for example

undox(_counterReducer, {
  limit: {
    past: 2,
    future: Infinity,
  },
});

Buggytheclown avatar Mar 23 '21 13:03 Buggytheclown