Skip to content

How to use flagged with Next.js ? #353

Closed Answered by sergiodxa
piyushchauhan2011 asked this question in Q&A
Discussion options

You must be logged in to vote

There’s nothing specific required, render the FlagsProvider somewhere (it can be in _app or in each page) and every component inside will have access to the flags.

You can get your list of flags however you prefer, getServerSideProps, getStaticProps or client side doing a fetch or using something like SWR or React Query.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sergiodxa
Comment options

You must be logged in to vote
0 replies
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