Konrad Lisiczyński
Konrad Lisiczyński
@mahmoodi is right. Because JWT is saved in a cookie, it will be automatically sent with every request, causing successful authentication without any need to add JWT to request header...
I solved this issue with https://github.com/klis87/i18next-ts-loader , unfortunately I suppose it will not work with next js by default. We could think if this could be worth integrating, then maybe...
Because more than 2 years passed since raising this issue, if anyone is interested, I developed a library similar to Apollo - `redux-requests`, but for any API - not only...
EDIT: the original example is correct, I made a mistake wiring the old ref :) ------------------------ Nice proposal @lejahmie I copied your example into my code and it almost work,...
@windmaomao > You are not supposed to wire the old ref any more Yes, this was the thing I did, nice guess!
Hi, glad you like it! Regarding this error, I never encountered this. Could you please first try whether you could reproduce it in this example? https://github.com/klis87/redux-requests/tree/master/examples/advanced - it also uses...
It looks like it complains about mutation in requests reducer, but I don't think I do any mutations: o could you show me transparency/overviewCharts request action?
@tonitassimo cool, so you use it in the whole team! ;) so nothing fancy here, I am suspecting that this error is actually not really error, but you use tookit...
@tonitassimo no problem, nice it works now @Flixbox thx for the solution! btw, do you know whether this issue happens for any Axios error?
I think this should really be solved on axios level, at some point I will check this and file issue/PR on axios library, I don't think they should mutate error...