Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(refactor): Router: Splitting things up into smaller files #9988

Merged
merged 4 commits into from
Feb 9, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Feb 9, 2024

Splitting up some files in the router package into smaller pieces for finer granularity when importing things.

This gets more important with RSCs where you don't want a single client-only import in a file block the usage of all the functions/components in that file.

When putting <Link /> and <NavLink /> into separate files I also took the opportunity to use a composition pattern, so that <NavLink /> internally uses <Link />. To make sure I didn't break anything when doing so I updated our test project fixture to use <NavLink />s for the main blog layout, and gave them all a nice little underline to show what page you're currently on

@Tobbe Tobbe added the release:chore This PR is a chore (means nothing for users) label Feb 9, 2024
@Tobbe Tobbe added this to the RSC milestone Feb 9, 2024
@Tobbe Tobbe enabled auto-merge (squash) February 9, 2024 13:05
@Tobbe Tobbe merged commit 8573771 into redwoodjs:main Feb 9, 2024
42 of 44 checks passed
@Tobbe Tobbe deleted the tobbe-rsc-split-router branch February 10, 2024 21:56
dac09 added a commit to dac09/redwood that referenced this pull request Feb 12, 2024
…d-cookies-dbauth

* 'main' of github.com:redwoodjs/redwood:
  fix(dependencies): Use RW-specific version of apollo ssr package (redwoodjs#9992)
  RSC: chore(test): Update RSC test fixture project (redwoodjs#9990)
  RSC: createServerCell (redwoodjs#9987)
  chore(refactor): Router: Splitting things up into smaller files (redwoodjs#9988)
  chore(project-config): make chore changes to trigger ci (redwoodjs#9985)
@Josh-Walker-GM Josh-Walker-GM modified the milestones: RSC, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:chore This PR is a chore (means nothing for users)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants