* fix: scroll-restoration (especially on hydration mismatch) * fix: more fixes * fix canGoBack * release: v1.97.25 * chore(root): upgrade `vitest` to `3.0.4` (#3257) * chore(root): upgrade `nx` to `20.4.0` (#3259) * fix(react-router): improve error handling for module loading failures in lazyRouteComponent (#3262) Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> * fix(start-server): remove debugging timeout (#3258) * fix(start-plugin): invoke server implementation of createIsomorphicFn during SSR (#3268) * feat(react-router): add `remountDeps` (#3269) * fix: RELEASE_ALL RELEASE_ALL * examples: remove dep (#3270) * release: v1.98.0 * checkpoint * fix tests * tests: fix * fix: back to old onRendered * fix: scroll-restoration (especially on hydration mismatch) * fix: more fixes * fix canGoBack * checkpoint * fix tests * tests: fix * fix: back to old onRendered * Move utils to core * fix: backwards compat ScrollRestoration * fix: better versioning * fix: reenable hash scrolling and window reset even without scroll restoration * test(e2e): renable tests for router * fix: backwards compat and docs --------- Co-authored-by: Tanner Linsley <tannerlinsley@gmail.com> Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com> Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com> Co-authored-by: Flo <fpellet@ensc.fr> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Daniel Grant <1670902+djgrant@users.noreply.github.com> |
History
|
|
|---|---|---|
| .. | ||
| app | ||
| public | ||
| .gitignore | ||
| .prettierignore | ||
| app.config.ts | ||
| package.json | ||
| postcss.config.mjs | ||
| README.md | ||
| tailwind.config.mjs | ||
| tsconfig.json | ||
Welcome to TanStack.com!
This site is built with TanStack Router!
It's deployed automagically with Netlify!
Development
From your terminal:
pnpm install
pnpm dev
This starts your app in development mode, rebuilding assets on file changes.
Editing and previewing the docs of TanStack projects locally
The documentations for all TanStack projects except for React Charts are hosted on https://tanstack.com, powered by this TanStack Router app.
In production, the markdown doc pages are fetched from the GitHub repos of the projects, but in development they are read from the local file system.
Follow these steps if you want to edit the doc pages of a project (in these steps we'll assume it's TanStack/form) and preview them locally :
- Create a new directory called
tanstack.
mkdir tanstack
- Enter the directory and clone this repo and the repo of the project there.
cd tanstack
git clone git@github.com:TanStack/tanstack.com.git
git clone git@github.com:TanStack/form.git
Note
Your
tanstackdirectory should look like this:tanstack/ | +-- form/ | +-- tanstack.com/
Warning
Make sure the name of the directory in your local file system matches the name of the project's repo. For example,
tanstack/formmust be cloned intoform(this is the default) instead ofsome-other-name, because that way, the doc pages won't be found.
- Enter the
tanstack/tanstack.comdirectory, install the dependencies and run the app in dev mode:
cd tanstack.com
pnpm i
# The app will run on https://localhost:3000 by default
pnpm dev
- Now you can visit http://localhost:3000/form/latest/docs/overview in the browser and see the changes you make in
tanstack/form/docs.
Note
The updated pages need to be manually reloaded in the browser.
Warning
You will need to update the
docs/config.jsonfile (in the project's repo) if you add a new doc page!