Skip to content

fix(auth): mount react-hot-toast Toaster for auth feedback#212

Open
AnushKamble wants to merge 1 commit into
rdodiya:gssoc_developfrom
AnushKamble:fix/toaster-auth-feedback
Open

fix(auth): mount react-hot-toast Toaster for auth feedback#212
AnushKamble wants to merge 1 commit into
rdodiya:gssoc_developfrom
AnushKamble:fix/toaster-auth-feedback

Conversation

@AnushKamble
Copy link
Copy Markdown

Changes Made

  • Mounted the react-hot-toast <Toaster /> component in App.jsx
  • Enabled toast notifications for login and registration flows
  • Preserved existing authentication and routing behavior

Root Cause

toast.success() and toast.error() were already being called in the authentication flow, but the application did not mount a <Toaster /> component anywhere in the React tree. As a result, toast notifications were never rendered.

Files Modified

  • RestroHub-FrontEnd/src/App.jsx

Testing & Verification

  • No authentication logic modified
  • No routing behavior changed
  • No new dependencies added
  • No package/config changes
  • Minimal scoped fix with isolated frontend change

Closes #203

@AnushKamble AnushKamble changed the title fix(frontend): mount react-hot-toast Toaster for auth feedback fix(auth): mount react-hot-toast Toaster for auth feedback May 24, 2026
@rdodiya
Copy link
Copy Markdown
Owner

rdodiya commented May 25, 2026

Hi @AnushKamble ,
Page is refreshed if we provide wrong credentials, page should not refresh after error message shown in toast.
Please fix this.

restrohub_212.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(auth): mount react-hot-toast Toaster so login/register feedback is visible

2 participants