Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create user session hook #730

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Create user session hook #730

merged 3 commits into from
Nov 17, 2023

Commits on Nov 17, 2023

  1. Add user to session data

    This merges the default user from session with the user data that we
    fetch from the api
    negreirosleo committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    bfc5d50 View commit details
    Browse the repository at this point in the history
  2. Create useGetCurrentUser hook

    This hook gets the user from the session and returns it, this commit
    replaces the prop drilling of userId that we had to directly call the
    useGetCurrentUser where it is needed.
    negreirosleo committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    bcc796a View commit details
    Browse the repository at this point in the history
  3. Add useGetCurrentUser mock to TaskForm test

    The moduleNameMapper was added to jest.config to be able to use
    absolute imports with jest.mock()
    negreirosleo committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    8e451c0 View commit details
    Browse the repository at this point in the history