EmbeddedChat
EmbeddedChat copied to clipboard
Refactor RCComponent useEffects
Acceptance Criteria fulfillment
- [x] Combine three useEffect hooks into one
- [x] Set toast bar position and avatar state using store hooks
- [x] Check if the user is authenticated using the setIsUserAuthenticated hook
- [x] Verify that code behavior is not affected
Fixes #132 Task 9
@VipinDevelops Thanks for this PR. I do have one question that should we fetch user details when props like toastPosition, showAvatar etc changes? Tagging @sidmohanty11.