Glat to hear that. Hope I am able to resolve your query.
Reach out again if needed.
Regards,
Rakesh
Hi,
I have solved my issues. Thank you very much for your helpful response.
Thank you,
Kevin
ok. I hope you already referred this to play with authentication.
https://codedthemes.gitbook.io/berry/authentication
Also, if you are using your own context, you need to dispatch the action of accountReducer (src\store\accountReducer.ts).
Once action will be dispatched, useEffect will catch and navigate to the respective path from Guards.
Hope it helps.
Regards,
Rakesh
Yes, I know this. But the question is still not answered.
The question is why my registration page is not refreshing after a successful response from the back-end and after the isLoggIned: true state has changed.
I have no errors, What do you mean live?
In the demo version after you successfully register you will be redirected to the dashboard and that is what I am expecting too. Btw, I am using Custom Context using the JWT from my back-end server
Well, if you check to live, it will redirect login. Do you have any errors in the console?
Regards,
Rakesh
After I submitted the registration form and had a successful response from the server I've changed the state isLoggedIn: true
But the registration did not refresh, It just froze into that page.
Refresh?
May I know what is your use case?
Regards,
Rakesh
Hi,
Thanks for the reply, May I also ask how I refresh the registration page after successfully submitting the registration form?
Hi,
that is a wrapper of the useRef hook to access across application.
https://reactjs.org/docs/hooks-reference.html#useref
Regards,
Rakesh
Hi,
My client bought the template named Berry, I've been customizing the Authentication, especially the registration page, I can now register but I've been wondering what is the use of scriptedRef?
See attached image for your reference.
Thanks,
Kevin
Additional Info
Order#: 42925
Purchase From?: Material Ui
Name of Product/template: Berry template
Good day Sir.
We are always happy to get feedback from our valued customers so that we can continue to improve our service.
If you could spare two minutes of your time to write a review, we would be really grateful and very happy to read it.
To leave us a review simply click on this link https://mui.com/store/items/berry-react-material-admin/
You can log in and put some reviews on the review tab.
Thank you for trusting us with your purchase and, hopefully, taking the time out of your day for writing a review.
If you have any questions, please contact us at any time through a new or current ticket.
Best,
Rakesh