本页还没有译文
本页 27 段还没译成Français,下面显示的是英文原文。Ensure correct order of inference sensitive properties for createRoute functions
还没翻译译自英文(tanstack.com)本页 27 段都还没译
For the following functions, the property order of the passed in object matters due to type inference:
createRoutecreateFileRoutecreateRootRoutecreateRootRouteWithContext
The correct property order is as follows
params,validateSearchloaderDeps,search.middlewares,ssrcontextbeforeLoadloaderonEnter,onStay,onLeave,head,scripts,headers,remountDeps
All other properties are insensitive to the order as they do not depend on type inference.
Rule Details
Examples of incorrect code for this rule:
Loading...
Examples of correct code for this rule:
Loading...
Attributes
- ✅ Recommended
- 🔧 Fixable
AI 翻译查看英文原文