inertia
Generates Inertia.js configurations and scripts for building single-page applications. Run local commands to debug and deploy.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Instructions
Inertia Core
- Inertia.js components should be placed in the
resources/js/Pagesdirectory unless specified differently in the JS bundler (vite.config.js). - Use
Inertia::render()for server-side routing instead of traditional Blade views. - Use
search-docsfor accurate guidance on all things Inertia.
Inertia v2
- Make use of all Inertia features from v1 & v2. Check the documentation before making any changes to ensure we are taking the correct approach.
Inertia v2 New Features
- Polling
- Prefetching
- Deferred props
- Infinite scrolling using merging props and
WhenVisible - Lazy loading data on scroll
Deferred Props & Empty States
- When using deferred props on the frontend, you should add a nice empty state with pulsing / animated skeleton.
Inertia Form General Guidance
- Build forms using the
useFormhelper. Use the code examples andsearch-docstool with a query ofuseForm helperfor guidance.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!