Auto tainting
Unanswered
Wuchang bream posted this in #help-forum
Wuchang breamOP
is there a way to automatically remove unused parts of the props, data from components? like this but automatically tainting all https://nextjs.org/docs/app/building-your-application/data-fetching/fetching#preventing-sensitive-data-from-being-exposed-to-the-client
7 Replies
@joulev no
Wuchang breamOP
this next.js...
@Wuchang bream this next.js...
nextjs has no way to know what prop data is actually used on the frontend and what is not used. that requires a static analysis of the code which nextjs doesn't do.
@joulev nextjs has no way to know what prop data is actually used on the frontend and what is not used. that requires a static analysis of the code which nextjs doesn't do.
Wuchang breamOP
it doesnt check it on build time?
no
@joulev no
Wuchang breamOP
doesnt sound hard to add
well you are free to implement it and submit a PR. i'm just saying that at the present, it is not available