d57b9e1d05
* Add tests for the `useCampaigns` hook in the woocommerce-admin marketing. * Add `channels` to the deps of `useSelect` in the `useCampaigns` hook to avoid outdated hook states. * Make the `useCampaigns` hook support being used with multiple instances. - Include the `perPage` in the page key of campaigns in the multichannel's data store. - Move the processing of querying the campaigns paging to the selector of the multichannel's data store. - Move `total` in each campaign's paging of the multichannel's data store. - Remove unused properties and their types: `state.campaigns.perPage` and `state.campaigns.total` * Add changelog * Multichannel data store - Move the `total` from `campaigns.pages[*]` to `campaigns.meta` to have only one total value. Related to: - https://github.com/woocommerce/woocommerce/pull/41211#discussion_r1409634640 - https://github.com/woocommerce/woocommerce/pull/41211#discussion_r1409590559 * Multichannel data store - Return the pagination meta of campaigns along with the `getCampaigns` selector. Address: https://github.com/woocommerce/woocommerce/pull/41211#discussion_r1412266127 |
||
---|---|---|
.. | ||
action-types.ts | ||
actions.ts | ||
constants.ts | ||
controls.ts | ||
guards.ts | ||
index.ts | ||
reducer.ts | ||
resolvers.ts | ||
selectors.ts | ||
types.ts |