All right, and we're pretty much done with our application.
Now we just need to get our production ready and we'll start by fixing the warnings that we have in
the council.
And also I want to invoke the log out user.
If you remember, while we were still building everything, I left the console.log for error, not response,
and then commented out the log out user.
But now, since we're going to production, I actually want to invoke it and we want to do that in three
places.
Good jobs, the lead job, as well as show start.
So let's go to the app context first.
Now we're looking for those three functions.
So let me first get these show.
That's one where I'll remove the console.log and I'll invoke the logo user.
Same thing is going to be here for the week job.
And also, we have the same setup in the get jobs.
So let's set up this one first and then let's worry about the warnings that we have in the console and
in a console.
We have three warnings.
We have two for missing dependencies and we also have one for link.
So in the shared layout, while I was showing everything, I imported the link and effectively I didn't
remove it.
So let me go back to the shared layout and I want to remove this link.
And as far as the other two warnings, we have good jobs and show stats and complaints that they're
missing in Dependencia right now.
The thing is, if we'll just add them to dependency, right, we'll get the infinite loop because in
these functions, we update the state value and in the process we trigger the original render.
And then once we trigger the render when again, we invoke the function.
So that's how we can get the infinite loop.
So whatever you do, do not add them straight up to the dependency array and you have two options we
can do the quick and dirty way where we just add the comment.
So then we won't get this warning or we can set up the first callback.
Now, since I really want to focus on deploying the application, I'll actually take the quick and dirty
route where effectively we just need to go back to the console and we right away have a suggestion to
ignore.
Yes, disabled max line.
So now I just want to locate both of the files.
So we have stats.
That's the page and also jumps container.
And right after we invoke those functions, we just need to add this line of code.
Now you can also find it in the read me this line of code.
So let's navigate right now to the stats and then right after shows that this gunman.
And the same is going to be in the jobs container.
And another approach you can take is set up the huge callback hook.
So now it's served notice.
We have no warnings in the console.
Now we can move on to the next step.