Skip to content

FED-3236 Docs: add more details around connect vs hooks#957

Merged
rmconsole2-wf merged 3 commits intomasterfrom
docs-migrate-connect-vs-hooks
Oct 10, 2024
Merged

FED-3236 Docs: add more details around connect vs hooks#957
rmconsole2-wf merged 3 commits intomasterfrom
docs-migrate-connect-vs-hooks

Conversation

@greglittlefield-wf
Copy link
Contributor

@greglittlefield-wf greglittlefield-wf commented Oct 9, 2024

Motivation

The null safety migration guide could use a little more detail to help guide consumers on whether to migrate connect-ed components as is, vs first migrating them to use hooks.

Also, our Redux docs don't communicate a preference between connect or hooks, unlike the official React Redux docs which recommends hooks:

We recommend using the React-Redux hooks API as the default approach in your React components.

The existing connect API still works and will continue to be supported, but the hooks API is simpler and works better with TypeScript.

Changes

  • Add info in migration guide around preferring hooks, and caveats to migrating them
  • Update Redux docs to prefer hooks, and list hooks ahead of connect in TOC

Release Notes

Review

See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.

Please review:

QA Checklist

  • Tests were updated and provide good coverage of the changeset and other affected code
  • Manual testing was performed if needed
    • Steps from PR author:
      • Formatting looks good and all links work in rendered markdown
    • Anything falling under manual testing criteria outlined in CONTRIBUTING.md

Merge Checklist

While we perform many automated checks before auto-merging, some manual checks are needed:

  • A Frontend Frameworks Design member has reviewed these changes
  • There are no unaddressed comments - this check can be automated if reviewers use the "Request Changes" feature
  • For release PRs - Version metadata in Rosie comment is correct

@aviary-wf
Copy link

Security Insights

No security relevant content was detected by automated scans.

Action Items

  • Review PR for security impact; comment "security review required" if needed or unsure
  • Verify aviary.yaml coverage of security relevant code

Questions or Comments? Reach out on Slack: #support-infosec.

@rmconsole5-wk rmconsole5-wk changed the title Docs: add more details around connect vs hooks FED-3236 Docs: add more details around connect vs hooks Oct 9, 2024
Copy link
Contributor

@aaronlademann-wf aaronlademann-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 / QA +1

@Workiva/release-management-pp

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

@rmconsole2-wf rmconsole2-wf merged commit f15aa02 into master Oct 10, 2024
@rmconsole2-wf rmconsole2-wf deleted the docs-migrate-connect-vs-hooks branch October 10, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants