effector icon indicating copy to clipboard operation
effector copied to clipboard

Make `shape` instead of `store` parameter in useStoreMap

Open xaota opened this issue 3 years ago • 1 comments

Proposal

const data = useStoreMap({
  shape: [$a, $b], // ! now: `store: combine([$a, $b])`
  keys: deps,
  fn: ([a, b], deps) => ...
});

https://t.me/effector_ru/279338

Use case

sometimes you need more than one store in useStoreMap hook

xaota avatar Nov 22 '22 11:11 xaota

I assume it would be better to support shapes in store field instead of renaming it for this case 🤔

igorkamyshev avatar Nov 22 '22 13:11 igorkamyshev