military-pinkM
Refine3y ago
5 replies
military-pink

How Can I do code split in Refine

I want to do lazy load when user change route.
ref: https://reactrouter.com/en/main/route/lazy
check the picture #1
.
And it said ⚠️ only work in data router
.
What is data router?
ref: https://reactrouter.com/en/main/routers/picking-a-router#using-v64-data-apis
check the picture #2
.
Refine use BrowserRouter which is NOT data router.
I've tried React.lazy to code split the pages, but it did NOT work.
.
Do anyone know how to do code split in Refine?
image.png
image.png
image.png
Was this page helpful?