Open
Description
Why?
Our code must be comprehensible, maintainable, and reusable, hence we have to abstract the domain selection logic (see reference) to a (reusable) hook.
What?
Currently, the domain selection logic is contained in the <FocusedLaunch/>
component.
Here, several checks are executed to comply with all the variants (e.g. when available, select the plan from the checkout cart, initially) to select the proper domain.
Reference
wp-calypso/packages/launch/src/focused-launch/index.tsx
Lines 32 to 34 in ba09df9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment