Creating a wrapper component and using it in the nextjs layout, it throws errors.
export function FeatureFlagProvider({
children,
}: {
children: React.ReactNode
}) {
return (
<SupaProvider config={config}
{children}
</SupaProvider>
)
}
Error:
const context = useContext(SupaContext)
if (!context) {
throw new Error('useFeatureContext must be used within a SupaProvider')
^
}
Creating a wrapper component and using it in the nextjs layout, it throws errors.
Error: