Commit ce52d03 1 parent e5c7781 commit ce52d03 Copy full SHA for ce52d03
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 @@ -73,7 +73,6 @@ export type {
73
73
CatchBoundaryComponent ,
74
74
HtmlMetaDescriptor ,
75
75
RouteModules as UNSAFE_RouteModules ,
76
- ShouldReloadFunction ,
77
76
} from "./routeModules" ;
78
77
79
78
export { ScrollRestoration } from "./scroll-restoration" ;
Original file line number Diff line number Diff line change @@ -161,26 +161,3 @@ export async function loadRouteModule(
161
161
} ) ;
162
162
}
163
163
}
164
-
165
- /**
166
- * @deprecated The `unstable_shouldReload` function has been removed, so this
167
- * function will never run and route data will be revalidated on every request.
168
- * Please update the function name to `shouldRevalidate` and use the
169
- * `ShouldRevalidateFunction` interface.
170
- */
171
- export interface ShouldReloadFunction {
172
- ( args : {
173
- url : URL ;
174
- prevUrl : URL ;
175
- params : Params ;
176
- submission ?: Submission ;
177
- } ) : boolean ;
178
- }
179
-
180
- interface Submission {
181
- action : string ;
182
- method : string ;
183
- formData : FormData ;
184
- encType : string ;
185
- key : string ;
186
- }
You can’t perform that action at this time.
0 commit comments