Hello There,
I am getting an error, which says: “screen.after_render is not a function at router”.
when I click on the error, it redirects me to index.js where am using screen.after_render method of ProductScreen file.
I did try solving it by my self but, I still couldn’t figure out what’s wrong. One thing that am not getting is
We have not imported after_render method of (ProductScreen.js) to index.js file than how it is possible to use it?
It would be really kind of you, if you help me with this, if possible.
Thank you,
Sincerely [Shahrokh Temori]
Same thing bro…….. Someone should help please


if(screen.after_render) await screen.after_render();
this line of code will solve the issue, keep following, the instructor will also solve it ahead in the tutorial.
if(screen.after_render) await screen.after_render();
this will solve the problem. The instructor also solves this issue, keep following.