Sean Cassiere
4ae6ca9d6b
feat(start): move scripts,links, and meta to the head ( #2571 )
...
This minor is non-breaking for Router users, since it's undocumented to the public API, but **is breaking** for Start alpha users.
This changes the options signature for meta from this:
```tsx
createRoute({
meta: () => [
...
],
links: () => [
...
],
})
```
to this:
```tsx
createRoute({
head: () => ({
meta: [
...
],
links: [
...
],
})
})
```
2024-11-17 15:19:18 -07:00
Sean Cassiere
563e5d168c
feat(router-generator): remove prettier ignore comment blocks ( #2679 )
2024-11-01 14:22:12 +13:00
Manuel Schiller
5499693bb3
fix(react-router): correct typing for unnested routes ( #2597 )
...
* fix(react-router): correct typing for unnested routes
fixes #2595
fixes #2596
* regenerate examples/tests
2024-10-20 17:48:18 +02:00
Manuel Schiller
d328172d10
chore: no braces for strings in JSX
2024-09-12 17:42:12 +02:00
Manuel Schiller
aeb35938f2
fix(router-generator): export generated interfaces ( #2282 )
2024-09-07 09:09:44 +02:00
Sean Cassiere
5fa21ad90e
chore(examples): regenerate route-tree files ( #2272 )
2024-09-06 13:59:33 +12:00
Sean Cassiere
3f6ffa5a21
test(examples): validation of layout route functionality by running e2e testing on the basic examples ( #2042 )
...
* chore: unify the layout ui across all the basic examples
* chore: more unification
* test(examples): e2e validation of layout routes
2024-07-28 00:12:15 +12:00
Sean Cassiere
66c9dcd349
test(examples): add e2e testing to ensure the basic examples work across releases ( #1990 )
...
* test(examples): add e2e to basic
* test(examples): add e2e to basic-file-based
* test(examples): add e2e to basic-react-query
* test(examples): add e2e to basic-react-query-file-based
* chore(examples): delete the test-results folder and content
* chore(examples): update gitignores
2024-07-19 16:09:11 +12:00
Tanner Linsley
3003d986c6
fix(router): fixed a lot of context related issues ( #1907 )
2024-07-16 19:34:14 +02:00
Sean Cassiere
cd85ca1de1
chore: cleanup styles and eslint errors in the spa examples ( #1971 )
...
* style(examples): kitchen sink examples
* style(examples): more kitchen sink examples
* style(examples): basic examples
* style(examples): authenticated routes example
* style(examples): authentication routes example
* style(examples): scroll restoration
* style(examples): navigation blocking
* style(examples): defered data example
* style(examples): location masking example
* style(examples): quickstart examples
2024-07-17 02:28:39 +12:00
Tanner Linsley
fd692cf77d
feat: New Serialization Paradigm ( #1824 )
...
* checkpoint
* fix: config
* checkpoint
* testing fixes (#1679 )
* examples: init trellaux
* feat: Better serialization/streaming, RSC proof of concept
* fixup server-handler
* fix: update deps and lock
* fix: remove rscFrom
* fix: remove useLoaderDataTransform
* fix: min react version
* chore: lockfile
* style: prettier fail
* chore: swap expect-error for ignore
* chore(react-router): try coercing the types
* chore: put this back in
* fix: some tests
* remove conditions
* fix tests
* update lockfile
* fix: refactor dehydrated data
* Update docs
* fix: remove unused deferred logic
* fix port
* nevermind
* fix: remove rebase garbage
* disable playwright for a hot minute
* oops, actually disable it now
* fix: prettier formatting
* fix: do not ignore app.config files
---------
Co-authored-by: Nikhil Saraf <nsaraf98@gmail.com>
Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-06-28 09:45:01 -06:00
Sean Cassiere
4c67e76a3e
fix(router-generator): conflicting prettier outputs ( #1661 )
...
* style: prettier
* test(react-router): try using `it`
* chore: undo those test trys
* fix(router-generator): remove unnecessary line breaks
* fix(router-generator): closer to what it was earlier
* fix(router-generator): dont conflict with tsr project prettier for snapshots
2024-05-24 22:06:05 +12:00
Tanner Linsley
f1147714ff
fix(start): bundling and tests
2024-05-23 15:46:19 -06:00
Tanner Linsley
cb80816603
fix(start): config for RSCs... almost
2024-05-18 21:06:34 -06:00
Tanner Linsley
3e99326e48
fix: start dependency chains
2024-05-14 11:30:53 -06:00
Dominik Dorfmeister
9f9b847ea7
feat: add reset prop to errorComponent ( #1358 )
...
* feat: add reset prop to errorComponent
* fix: types of defaultErrorComponent
* fix: put match into pending state when being invalidated if it was in error state
* docs: reset
* docs: error handling
* docs: integrate error handling into example
* chore: prettier on md files
* chore: fix wrong auto import
* fix: reset error boundaries from react-query in an effect
so that navigating away from a route will also re-trigger the query
* docs: error handling with TanStack Query
* chore: fix eslint
* fix: not all error components have a `preload`
* fix: merge conflict
2024-03-29 23:21:04 +01:00
Rustam Musin
bcb97411ed
examples: Add a missing space in header of basic-react-query-file-based example ( #1211 )
2024-02-23 23:13:34 +01:00
Tanner Linsley
578808ef36
release: v1.16.1
2024-02-10 06:51:15 +00:00
Tanner Linsley
98d22a81d5
release: v1.16.0
2024-02-09 21:14:36 +00:00
Tanner Linsley
02a44644ca
release: v1.15.20
2024-02-06 20:15:45 +00:00
Tanner Linsley
d6d7a3e489
release: v1.15.18
2024-02-05 03:33:00 +00:00
Lachlan Collins
2ceb12b4cb
ci(examples): Test examples in CI ( #1142 )
...
* Re-enable prettier on PR workflows
* Run pnpm dedupe
* Fix vinxi/http, disable some broken builds
* Fix prettier errors
2024-02-03 12:06:51 +11:00
Manuel Schiller
c70b10ef2f
fix: deprecate rootRouteWithContext in favor of createRootRouteWithContext ( #1098 )
2024-01-28 15:58:26 -07:00
Tanner Linsley
fcc278ffc8
feat: New code-splitting patterns + deprecations
...
- Deprecated class constructor APIs in favor of new `create[Class]` functions
- Added new code-splitting paradigm that produces less code, preloads potentially faster and plays nicely with SSR and file-based routing
- Updated all examples to use new code splitting patterns and new suggested APIs
2024-01-24 13:01:48 -07:00
Rui Saraiva
04bb62efea
chore(examples): upgrade examples dependencies ( #947 )
2024-01-09 00:55:48 +01:00
Tanner Linsley
3206f0481b
fix: swr + remove shouldReload, activeOptions?.exact for search params
2023-12-18 17:28:12 -07:00
Tanner Linsley
7725c392b1
fix: routeOptions.key
2023-12-04 14:21:01 -07:00
Tanner Linsley
36d774bc36
fix: do not recreate history on fast refresh
2023-12-04 09:24:15 -07:00