DEV Community

loading...

Discussion on: What do you think of React Testing Library?

Collapse
bdbch profile image
Dominik Biedebach

Can you exclude this tag when you want to fetch it via the articles endpoint?

I'd like to integrate dev.to into my website instead of medium but wouldn't like to see my discussion posts in there. :)

Sure could filter out on my side, but that would break the pagination.

Thread Thread
acostalima profile image
André Costa Lima

Not sure. I haven't used the API yet. Maybe the docs can provide you a hint. 👌

Thread Thread
kenbellows profile image
Ken Bellows

@bdbch if you're just trying to page through your own articles, you can probably just pull in the whole dang list and do whatever sorting and paging you want on the client. You'd have to write a ton of articles for that to be a problem. Different story if you're pulling more that just your own, but in that case you'll probably have a more specific query anyway

Thread Thread
bdbch profile image
Dominik Biedebach

Thats true, guess thats the best way to go from here on! :)