Chrea Chanchhunneng
Chrea Chanchhunneng
I got error if I use enableReinitialize in formik hook ``` Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't...
I found one solution to reinitial is use useEffect to update data when the object change ```js useEffect(() => { if (!isEmpty(data)) { formik.setValues({ ...data }); } }, [data]); ```
For Problem C I think for 1,000,000 the comma should be 2 Because the question ask about number of comma but the meaning is just ask how many numbers have...
> Agree, I have implemented this in my own APIView this way: > > ``` > class Logout(APIView): > """ > The API for logging out a user -> blacklisting...
> The `blacklist_token` is a method that I added to the User model (class) myself: > > ```python > def blacklist_token(self, token): > outstanding_token = OutstandingToken.objects.get(token=token) > BlacklistedToken.objects.create(token=outstanding_token) > ```...
after you log out, request to refresh-token endpoint then the token will not be useable anymore. but it's just the temporary solution now
Did you try to use AxiosRequestConfig interface to set the headers property to a new object that includes the header. For example: ```js const axios = require('axios'); const config =...