How to use flagged with Next.js ? #353
-
I was wondering how can I integrate |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Jan 21, 2022
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sergiodxa
-
Thank you @sergiodxa 😄 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.