Commit a5a78fb 1 parent 1bdc06a commit a5a78fb Copy full SHA for a5a78fb
File tree 5 files changed +9
-192
lines changed
5 files changed +9
-192
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @remix-run/react " : major
3
+ ---
4
+
5
+ Remove ` unstable_shouldReload ` , which has been replaced by ` shouldRevalidate `
Original file line number Diff line number Diff line change @@ -190,21 +190,13 @@ title: Conventions
190
190
191
191
[ Moved →] [ moved-44 ]
192
192
193
- ### unstable_shouldReload
193
+ ### shouldRevalidate
194
194
195
195
[ Moved →] [ moved-45 ]
196
196
197
- #### Never reloading the root
198
-
199
- [ Moved →] [ moved-46 ]
200
-
201
- #### Ignoring search params
202
-
203
- [ Moved →] [ moved-47 ]
204
-
205
197
## Asset URL Imports
206
198
207
- [ Moved →] [ moved-48 ]
199
+ [ Moved →] [ moved-46 ]
208
200
209
201
[ moved ] : ../file-conventions/remix-config
210
202
[ moved-2 ] : ../file-conventions/remix-config#appdirectory
@@ -250,7 +242,5 @@ title: Conventions
250
242
[ moved-42 ] : ../route/catch-boundary
251
243
[ moved-43 ] : ../route/error-boundary
252
244
[ moved-44 ] : ../route/handle
253
- [ moved-45 ] : ../route/should-reload
254
- [ moved-46 ] : ../route/should-reload#never-reloading-the-root
255
- [ moved-47 ] : ../route/should-reload#ignoring-search-params
256
- [ moved-48 ] : ../other-api/asset-imports
245
+ [ moved-45 ] : ../route/should-revalidate
246
+ [ moved-46 ] : ../other-api/asset-imports
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ export type {
77
77
V2_MetaDescriptor ,
78
78
V2_MetaFunction ,
79
79
RouteModules as UNSAFE_RouteModules ,
80
- ShouldReloadFunction ,
81
80
} from "./routeModules" ;
82
81
83
82
export { ScrollRestoration } from "./scroll-restoration" ;
Original file line number Diff line number Diff line change @@ -205,26 +205,3 @@ export async function loadRouteModule(
205
205
} ) ;
206
206
}
207
207
}
208
-
209
- /**
210
- * @deprecated The `unstable_shouldReload` function has been removed, so this
211
- * function will never run and route data will be revalidated on every request.
212
- * Please update the function name to `shouldRevalidate` and use the
213
- * `ShouldRevalidateFunction` interface.
214
- */
215
- export interface ShouldReloadFunction {
216
- ( args : {
217
- url : URL ;
218
- prevUrl : URL ;
219
- params : Params ;
220
- submission ?: Submission ;
221
- } ) : boolean ;
222
- }
223
-
224
- interface Submission {
225
- action : string ;
226
- method : string ;
227
- formData : FormData ;
228
- encType : string ;
229
- key : string ;
230
- }
You can’t perform that action at this time.
0 commit comments