Skip to content

Continuous requests using useSWR #997

Answered by joshkel
jackHedaya asked this question in Q&A
Discussion options

You must be logged in to vote

The simplest solution is to make each independent request independently; there's no reason you can't call useSWR as many times as you want within a component. The component will re-render with available data as individual requests come in.

Would that meet your needs?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jackHedaya
Comment options

@joshkel
Comment options

@jackHedaya
Comment options

@joshkel
Comment options

Answer selected by jackHedaya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants