Inter-Camp / InterCamp

InterCamp is an interview preparation platform, where users can check their knowledge on a specific topic.
https://intercamp.herokuapp.com/
28 stars 23 forks source link

Log-in issue with react-redirect #55

Closed stacykutyepov closed 3 years ago

stacykutyepov commented 3 years ago

When you sign in to the app, it redirects you to the user page after few seconds. However, you get to the main page for few seconds. Seems like it shouldn't be that way. The idea is to make it seamless and add a loader while the app processes the redirect.

Screen Shot 2021-04-08 at 4 18 50 PM
golden-on commented 3 years ago

1- after sign in , be redirected to the user page after few seconds 2- create some loading animation that make the user more patient can you explain more the process of this feature in steps lik one: two: . . . . ?

stacykutyepov commented 3 years ago

Hello! Seems like you understood the problem. 1- after sign in , be redirected to the user page after few seconds 2- while redirecting create some loading animation

I think the best would be to create some kind of state in redux, where you would store the loading state and then show the loader when the state is 'true'

golden-on commented 3 years ago

ok thank you for explanation I will make this work fast as possible but the last question why we need to use redux for this small task while we can use just a simple state or context?

stacykutyepov commented 3 years ago

We can use redux state to make it global and also use it for other pages that’d need some loading in the future.

Best regards, Stacy

On Apr 11, 2021, at 7:37 PM, golden-on @.***> wrote:



ok thank you for explanation I will make this work fast as possible but the last question why we need to use redux for this small task while we can use just a simple state or context?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Inter-Camp/InterCamp/issues/55#issuecomment-817393182, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AO4UYMMB6APX26BU57HY2E3TIIQDLANCNFSM42TTR3KA.

stacykutyepov commented 3 years ago

resolved