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

fix: article suggestions refresh when user clicks settings #717 #740

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

zarSou9
Copy link
Contributor

@zarSou9 zarSou9 commented Jun 20, 2024

No description provided.

].slice(0, 3)

setItems(initialItems)
// eslint-disable-next-line
Copy link
Collaborator

@Aprillion Aprillion Jun 21, 2024

Choose a reason for hiding this comment

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

I would prefer if randomQuestions was a stable reference to a useCallback-ed function that wouldn't mess with useEffect deps => no need to disable eslint,, but not a blocker if that's not a trivial fix (I haven't checked myself at the moment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree, but yeah it might be difficult because randomQuestions comes from a hook -> useOnSiteQuestions

@zarSou9 zarSou9 merged commit 7baa4ee into master Jun 21, 2024
1 check passed
@zarSou9 zarSou9 deleted the ticket-#717 branch June 21, 2024 14:05
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