Skip to content

Conversation

@YannickManfroy
Copy link

No description provided.

// Otherwise, sort by name
return a.name.toLowerCase() > b.name.toLowerCase() ? 1 : -1;
});
});
Copy link
Member

Choose a reason for hiding this comment

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

Check je network tab:
Je hebt alle socks al aan de frontend, maar je gaat waarschijnlijk elke keer de socks opnieuw gaan ophalen!

handleSearch(event: any) {
const search = event.target.value;
this.socksPaginated$ = this.socksService.get().pipe(
map(socks => socks.filter(sock => sock.name.toLowerCase().startsWith(search.toLowerCase())))
Copy link
Member

@Laoujin Laoujin May 31, 2024

Choose a reason for hiding this comment

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

Goh, misschien includes in plaats van startsWith?

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.

3 participants