Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

Plans Next: Remove all of Redux plans state and manage it through the Plans data-store (main thread) #86638

Open chriskmnds opened 10 months ago

chriskmnds commented 10 months ago

What

Migrate/replace the Redux plans state (selectors and query components) to happen through the plans data store under /packages/data-stores/plans.

Why

Since https://github.com/Automattic/wp-calypso/pull/86349 we have effectively turned the existing plans' state redundant (which is primarily used for pricing). We are now maintaining two completely separated forms of state handling, one through the monolithic Redux state and another through the data-stores package. This needs some ownership to clean up the trace for the greater well-being of the codebase.

How

The following can be done through individual PRs:

chriskmnds commented 4 months ago

Update 12/07/2024

Just a quick update on progress:

Also noting a point of exploration (that may lead to a detour before proceeding with site-plans):