Skip to content

Adding user data to context and local storage#100

Merged
ddelpiano merged 7 commits intodevelfrom
feature/ILEX-110
May 14, 2025
Merged

Adding user data to context and local storage#100
ddelpiano merged 7 commits intodevelfrom
feature/ILEX-110

Conversation

@ddelpiano
Copy link
Member

No description provided.

@ddelpiano ddelpiano requested a review from jrmartin May 8, 2025 18:20
@ddelpiano ddelpiano requested a review from Aiga115 May 8, 2025 20:19
Copy link

@jrmartin jrmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me!

const { user, setUserData } = useContext(GlobalDataContext);

// check if cookie is expired
if (!user) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be True if user = null.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's expected, in the context initially the userData is null, then set to an emtpy object in case the cookie is expired.

@ddelpiano ddelpiano merged commit ef59984 into devel May 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants