-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Add a refine config option that will make RouteChangeHandler in the Refine container opt-out.
I have been using it, but the v5 upgrade has caused it to change behaviors as currently in my app it loads such the default object is setup for the context and it return false, but the checking is run outside of the Router context for me due to architectural reasons. So my app has historically had RouteChangeHandler be a no-op. So the simplest action is to just not render it in the tree.
Describe alternatives you've considered
No response
Additional context
No response
Describe the thing to improve
<UnsavedWarnContextProvider>
<React.Fragment>
{children}
{!disableTelemetryWithDefault && <Telemetry />}
<RouteChangeHandler />
</React.Fragment>
</UnsavedWarnContextProvider>
to
<UnsavedWarnContextProvider>
<React.Fragment>
{children}
{!disableTelemetryWithDefault && <Telemetry />}
{!disableRouteChangeHandler && <RouteChangeHandler />}
</React.Fragment>
</UnsavedWarnContextProvider>
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request