Skip to content
This repository has been archived by the owner on Aug 5, 2023. It is now read-only.

When signed in - the jobs on the "job board" run through two sorts. #104

Open
danhannigan opened this issue Mar 24, 2022 · 2 comments
Open
Labels
bug Something isn't working job board Issues related to the job board PR

Comments

@danhannigan
Copy link
Member

When a user is signed in and visits the /jobs page it does not sort properly — the first GetServerSideProps gets overwitten by a useEffect hook inside the page. Need to either remove that, or correct it to always sort properly.

@danhannigan danhannigan added bug Something isn't working job board Issues related to the job board PR labels Mar 24, 2022
@vladsolokha
Copy link

Could it be the way you're selecting from the database or is it just one use effect hook running two times?

@danhannigan
Copy link
Member Author

@vladsolokha hey! Sorry for the delay in response - my GitHub notifications are silly. TBH I haven't dove into the code that much - it was some that someone else had contributed. I suspect it's likely the useEffect hook running two times.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working job board Issues related to the job board PR
Projects
None yet
Development

No branches or pull requests

2 participants