github refinedev/refine @refinedev/core@4.57.5

latest release: @refinedev/mui@6.0.3
12 hours ago

Patch Changes

📢 Refine Community Release 📢

  • feat(core): add enabled prop to useLoadingOvertime and overtimeOptions

    Added missing enabled prop to useLoadingOvertime and added ability to globally configure through options.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, the to query parameter will work after login. If the URL includes a to 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 own useLoadingOvertime hook but also propagated the elapsedTime from useList hook which is used internally by useTable. 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 and resource props in useMany hook

    Added checks for ids and resource props to check in runtime if they are valid or not.

    useMany will warn if ids or resource props are missing unless the query is manually enabled through queryOptions.enabled prop.

    Resolves #6617

Don't miss a new refine release

NewReleases is sending notifications on new releases.