Fakultas Ilmu Komputer UI

Feat: Add initial User Redux state

Ahmad Izzudin Alifyandra requested to merge create-user-context into dev


Add state management for User login, so we don't need to call firestore everytime to fetch current user's login data.

User scheme is as follows:

export type IUser = {
  id?: string;
  firstName: string;
  lastName: string;
  email: string;
  phone: string;
  pic: string;

See Redux state usage here

Added packages:

  • redux
  • react-redux

How to test:

  • Add code from usage example in the link above in a component and run and see if initialState value displays

Tested on:

  • iOS
  • Android
Edited by Ahmad Izzudin Alifyandra

Merge request reports