Open kouloughli-hemza opened 2 years ago
Sorry for the late reply, I'm not really actively maintaining this repo at the moment. I dont see anything obviously wrong in what you are doing though. The typical mistake is creating the redirect wrapper inside a function component or something like that which you aren't doing here.
Hello , i was trying to implement the exemple of nesting wrappers for auth & admin at the same time , but if user not admin it redirect and keep redirecting untill app freezes;im not sure what was the mistake, is it with asyncComponent ? for admin users it works fine ! only if user is not admin PS: im using ConnectedRouter from connected-react-router Here is my route file :
here the wrappers file :
here implementation
Here my route switch
I Hope you can help me spot the mistake