Skip to content

v3.1.3

Compare
Choose a tag to compare
@ClarkXia ClarkXia released this 20 Mar 03:32
· 504 commits to master since this release
b04a59c
  • Feat: support route index and nested url without nested layout #6003

Support access /about/repo/$id by create route component about.repo.$id.tsx.

└── src
    β”œβ”€β”€ root.jsx
    └── pages
-       β”œβ”€β”€ about
-       β”‚   β”œβ”€β”€ repo
-       β”‚   β”‚   └── $id.tsx
        β”‚   └── index.tsx
+       └── about.repo.$id.tsx

Remain route path by [] which matches routing rules, such as index

route component route
src/pages/[index].tsx /index
src/pages/about/[index].tsx /about/index

Visit docs for more details.

  • Fix: HMR is reliable when develop #6004
  • Fix: build error when use wildcard route #6023 #6022
  • Fix: make sure server env variable is always false when CSR #6002
  • Fix: error caused by dataLoader when navigate #6044 #6039 #5974 #5888
  • Fix: useState parameter of initialState can be function in rax-compat mode #6033
  • Fix: dataLoader build error when config custom fetcher #6035
  • Fix: avoid remount when micro app is loaded in other micro app framework #6036
  • chore: imporve build preformance by using async function #6053
  • chore: add leading slash for basename in case of unexpected config #6058
  • chore: make server.onDemand optional #6010
  • chore: update init cli command for project scaffolds #5720