Replies: 2 comments 1 reply
-
This is the command that we tried and none gave us that import chain:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Alternatively, Chrome devtools "request initiator chain" might help. For example, I see something like this in one of my example app: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As a team, we have an administration panel that is dynamic and modular. When all modules are included, we see that more than 2000 files are loaded. Most of them are not necessary for the home page.
The first step to make it faster, is to find out the chain that causes the current request to be made to that module/file.
Using AI we extracted these debug options:
But none of them gave us the "chain" that we need. For example, when "/User/Field.jsx" is loaded, we need something like this:
/User/Field.jsx
is loaded, because it's imported from/Author/Form.jsx
/Author/Form.jsx
is loaded, because it's imported from/Author/List.jsx
/Author/List.jsx
is loaded, because it's imported in the routing of the blog module/Blog/Routes.jsx
/Bog/Routes.jsx
is loaded because it's imported in the dynamically createdAllRoutes.jsx
file/AllRoutes.jsx
is loaded because we import it in theRouting.jsx
Routing.jsx
is loaded because we import it in thePanel.jsx
Panel.jsx
is loaded because we import in themain.jsx
How can we get that log?
Beta Was this translation helpful? Give feedback.
All reactions