Comments (3)
The issue was, I was importing
import { FlagProvider } from "@unleash/nextjs/client";
import { useUnleashContext } from "@unleash/proxy-client-react";
whilst the correct is to import it from the same place as FlagProvider. Probably something changed in 1.3.0 and the contexts are not the same
CORRECT:
import { FlagProvider, useUnleashContext } from "@unleash/nextjs/client";
from unleash-client-nextjs.
Do you have this component wrapped in <FlagProvider>
? @danilofuchs
from unleash-client-nextjs.
Do you have this component wrapped in
<FlagProvider>
? @danilofuchs
Yes, it is
from unleash-client-nextjs.
Related Issues (16)
- Defining UNLEASH_SERVER_API_URL with a trailing slash is not working HOT 1
- Doesn't work but unleash-client does; Can't use instance_id HOT 7
- Wrong example in docs HOT 1
- "createContext only works in Client Components" error in API routes HOT 1
- getFrontendFlags hangs indefinitely when unleash-proxy is not reachable HOT 1
- Unable to setup with CSR and GitLab instance HOT 5
- Caching for server side toggles HOT 9
- Support for custom strategies HOT 6
- Metrics support
- Unleash: unable to fetch feature toggles TypeError: this.fetch is not a function HOT 4
- URL from getDefinitions is not loading correctly. HOT 5
- Middleware cause Error : Initial locale argument was not passed into serverSideTranslations HOT 1
- Bundlesize HOT 1
- Upgrade to unleash-client 5.5.1 HOT 1
- Update client-specification to v5.1.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unleash-client-nextjs.