refine icon indicating copy to clipboard operation
refine copied to clipboard

[BUG] Wrong types in `@refinedev/react-router-v6` when using legacy router

Open aliemir opened this issue 1 year ago • 0 comments

Describe the bug

When using the legacy router provider from @refinedev/react-router-v6/legacy, types are inferred as the new router provider and conflicts when using legacyRouterProvider prop of <Refine />

Steps To Reproduce

  • Import routerProvider from @refinedev/react-router-v6/legacy,
  • Pass routerProvider to legacyRouterProvider prop of <Refine />
  • TS throws errors about mismatching types

Expected behavior

Proper types to be exported in /legacy exports.

Packages

  • @refinedev/react-router-v6

Additional Context

No response

aliemir avatar Mar 19 '24 14:03 aliemir