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

Improve client app router configuration #231

Merged
merged 9 commits into from
Nov 25, 2023

Conversation

raix
Copy link
Contributor

@raix raix commented Nov 24, 2023

Summary & Motivation

Improve developer experience - setting up filesystem based routing.
Configuring React Router adding things like error handling, code splitting, dynamic path segments etc. should be as easy as creating a file.

Inspired by NextJS and the ease of use convention based routing.

/app
  layout.tsx - shared layout for child routes
  page.tsx - entry point for this route segment
  error.tsx - page to show when errors occur
  not-found.tsx - page to show if resource not found
  loading.tsx - code split and load this route dynamically
  /[id]
    page.tsx - show details using the param "id"

(NextJS has more functionality to work on server and client - docs)

Checklist

  • I have added a Label to the pull-request
  • I have added tests, and done manual regression tests
  • I have updated the documentation, if necessary

@raix raix self-assigned this Nov 24, 2023
@raix raix added the Enhancement New feature or request label Nov 24, 2023
@raix raix force-pushed the improve-client-app-router-configuration branch from d312392 to e14db3d Compare November 25, 2023 12:21
@tjementum tjementum changed the title Improve-client-app-router-configuration Improve client app router configuration Nov 25, 2023
@raix raix force-pushed the improve-client-app-router-configuration branch from e14db3d to 62424e4 Compare November 25, 2023 12:43
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@raix raix marked this pull request as ready for review November 25, 2023 12:47
@tjementum tjementum merged commit c61c338 into main Nov 25, 2023
6 checks passed
@tjementum tjementum deleted the improve-client-app-router-configuration branch November 25, 2023 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants