Patch Changes
📢 Refine Community Release 📢
-
feat(core): add
enabled
prop touseLoadingOvertime
andovertimeOptions
Added missing
enabled
prop touseLoadingOvertime
and added ability to globally configure throughoptions.overtime.enabled
.Due to the nature of calculating elapsed time, an interval is set by the
interval
prop. This was causing unwanted updates in the return value and there was no way to disable it properly.
📢 Refine Community Release 📢
-
fixed:
to
query parameter is not working after login. #6582
From now on, theto
query parameter will work after login. If the URL includes ato
query parameter, the user will be redirected to the specified path after logging in.Example:
After logout, Refine will automatically appends
to
query param to URL.http://localhost:3000/login?to=/any-path
After login, it will redirect to
http://localhost:3000/any-path
Resolves #6582
📢 Refine Community Release 📢
-
refactor(core): remove duplicated overtime intervals caused by internally used hooks
Updated Refine's data hooks and extensions to prevent duplicated overtime intervals from being created. This uses the
enabled
prop to prevent internal hooks from registering the intervals.Prior to this change,
useTable
was initializing its ownuseLoadingOvertime
hook but also propagated theelapsedTime
fromuseList
hook which is used internally byuseTable
. This caused duplicated intervals and unwanted updates.This now ensures a single interval is created and used for the extension hooks.
📢 Refine Community Release 📢
-
fix(core): add missing checks and warnings for
ids
andresource
props inuseMany
hookAdded checks for
ids
andresource
props to check in runtime if they are valid or not.useMany
will warn ifids
orresource
props are missing unless the query is manually enabled throughqueryOptions.enabled
prop.