-
Notifications
You must be signed in to change notification settings - Fork 0
Lucijs backend home page #484
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Osim nacina tj mista di fetchas podatke ostalo mi sve izgleda dobro 👍🏼
import RecommendationsButton from '../../../../components/RecommendationsButton'; | ||
import { CompanyPublicDto } from '@ddays-app/types'; | ||
|
||
async function fetchTopRatedCompanies(): Promise<CompanyPublicDto[] | undefined> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nebi fetchala podatke direkt u komponentama, mozes izvuc ove stvari u custom hookove po potrebi ako su podaci potrebni na vise mista napravit provider
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ajde pliz samo pogledaj ovo i rjesi da bude spremno, ako nisi opet mergeaj main i provjeri zasto se ruse checkovi pa rerequestaj review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge markeri ostali? nesto se skrsilo kod konflikata
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testira, sve mi je radilo kako triba, pogledaj samo jedan komentar još. Za topRatedCompanies funkciju u company.service sam pusha refactor sa raw sql querijem po sugestiji copilota za optimizaciju. Meni radi dobro pa provjeri jos je li i tebi.
useEffect(() => { | ||
const loadEventsWithSpeakers = async () => { | ||
const fetchedCompanies = await fetchEvents(); | ||
if (fetchedCompanies) setEvents(fetchedCompanies); | ||
}; | ||
|
||
loadEventsWithSpeakers(); | ||
}, []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactora bi ovu funkciju za fetch events i useEffect u hook sa useQuery kad smo vec za sve ostale.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cini mi se okej
console.log(displayedEvents) | ||
console.log("live:", liveEvents) | ||
console.log("next:",nextEvents) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ovo mos maknit
Samo san fatchala sve eventove i ovih 5 najbolje ocijenjenih kompanija, testirala san lokalno i sve radi