Skip to content

Commit

Permalink
Merge branch 'dev' into markdalgleish/lazy-css-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Jun 6, 2023
2 parents 6d7552c + 70a385e commit 69881ec
Show file tree
Hide file tree
Showing 110 changed files with 818 additions and 559 deletions.
5 changes: 0 additions & 5 deletions .changeset/bubbled-response-cookies.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/css-import-warnings-unstable-dev.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/error-response-resource-route.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/expose-error-headers.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/gorgeous-fireants-fry.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/great-geese-compare.md

This file was deleted.

22 changes: 0 additions & 22 deletions .changeset/handle-error.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hdr-revalidation-retry.md

This file was deleted.

22 changes: 0 additions & 22 deletions .changeset/headers-args-type.md

This file was deleted.

25 changes: 0 additions & 25 deletions .changeset/lemon-beers-fetch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/log-server-errors.md

This file was deleted.

89 changes: 0 additions & 89 deletions .changeset/ninety-hornets-brake.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/postcss-cache-regular-stylesheets.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/req-clone-instanceof.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rude-geese-remain.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/serious-wolves-attend.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/stale-spoons-tie.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/strong-dolphins-tell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/v2-headers.md

This file was deleted.

23 changes: 0 additions & 23 deletions .changeset/wicked-pandas-give.md

This file was deleted.

8 changes: 8 additions & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- airjp73
- airondumael
- aissa-bouguern
- ajtorres9
- akamfoad
- alanhoskins
- Alarid
Expand Down Expand Up @@ -157,6 +158,7 @@
- frandiox
- freeman
- frontsideair
- furkanakkurt1335
- fx109138
- gabimor
- garand
Expand Down Expand Up @@ -289,6 +291,7 @@
- kuldar
- kumard3
- lachlanjc
- larister
- laughnan
- lawrencecchen
- leifarriens
Expand Down Expand Up @@ -459,6 +462,7 @@
- sergiodxa
- shairez
- shashankboosi
- shininglovestar
- shubhaguha
- shumuu
- sidkh
Expand All @@ -471,6 +475,7 @@
- sjparsons
- skube
- sndrem
- smeijer
- sobrinho
- squidpunch
- staylor
Expand Down Expand Up @@ -541,3 +546,6 @@
- yudai-nkt
- baby230211
- TomVance
- amir-ziaei
- mrkhosravian
- tanerijun
14 changes: 7 additions & 7 deletions docs/file-conventions/route-files-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ new: true

# Route File Naming (v2)

You can opt-in to the new route file naming convention with a future flag in Remix config.
You can opt in to the new route file naming convention with a future flag in Remix config.

```js filename=remix.config.js
/** @type {import('@remix-run/dev').AppConfig} */
Expand All @@ -18,7 +18,7 @@ module.exports = {

While you can configure routes in [remix.config.js][remix-config], most routes are created with this file system convention. Add a file, get a route.

Please note that you can use either `.jsx` or `.tsx` file extensions. We'll stick with `.tsx` in the examples to avoid duplication.
Please note that you can use either `.js`, `.jsx`, `.ts` or `.tsx` file extensions. We'll stick with `.tsx` in the examples to avoid duplication.

## Root Route

Expand All @@ -29,7 +29,7 @@ app/
└── root.tsx
```

The file in `app/root.tsx` is your root layout, or "root route" (very sorry for those of you who pronounce those words the same way!). It works just like all other routes so you can export a [`loader`][loader], [`action`][action], etc.
The file in `app/root.tsx` is your root layout, or "root route" (very sorry for those of you who pronounce those words the same way!). It works just like all other routes, so you can export a [`loader`][loader], [`action`][action], etc.

The root route typically looks something like this. It serves as the root layout of the entire app, all other routes will render inside the `<Outlet />`.

Expand Down Expand Up @@ -84,7 +84,7 @@ Note that these routes will be rendered in the outlet of `app/root.tsx` because
Adding a `.` to a route filename will create a `/` in the URL.

<!-- prettier-ignore -->
```markdown lines=[4-6]
```markdown lines=[5-7]
app/
├── routes/
│ ├── _index.tsx
Expand Down Expand Up @@ -166,7 +166,7 @@ app/
└── root.tsx
```

All of the routes that start with `concerts.` will be child routes of `concerts.tsx` and render inside the parent route's [outlet][outlet].
All the routes that start with `concerts.` will be child routes of `concerts.tsx` and render inside the parent route's [outlet][outlet].

| URL | Matched Route | Layout |
| -------------------------- | ----------------------- | -------------- |
Expand All @@ -180,7 +180,7 @@ Note you typically want to add an index route when you add nested routes so that

## Nested URLs without Layout Nesting

Sometimes you want the URL to be nested but you don't want the automatic layout nesting. You can opt-out of nesting with a trailing underscore on the parent segment:
Sometimes you want the URL to be nested, but you don't want the automatic layout nesting. You can opt out of nesting with a trailing underscore on the parent segment:

<!-- prettier-ignore -->
```markdown lines=[8]
Expand Down Expand Up @@ -260,7 +260,7 @@ app/

## Splat Routes

While [dynamic segments][dynamic-segments] match a single path segment (the stuff between two `/` in a url), a splat route will match the rest of a URL, including the slashes.
While [dynamic segments][dynamic-segments] match a single path segment (the stuff between two `/` in a URL), a splat route will match the rest of a URL, including the slashes.

<!-- prettier-ignore -->
```markdown lines=[4,6]
Expand Down
Loading

0 comments on commit 69881ec

Please sign in to comment.