Hi @future-teacher-7046@fresh-football-47124
If I want to get GB feature based on the project id, like features only for specific project then how I can achieve this my use latest version of js sdk?
f
future-teacher-7046
02/01/2023, 3:27 PM
In GrowthBook, you can create a separate SDK Connection for that specific project. It will give you a new API key and features endpoint that will only return features in the chosen project/environment.
h
handsome-library-89124
02/01/2023, 3:45 PM
There is one more concer @future-teacher-7046
If I use
Copy code
// Wait for features to be downloaded
await gb.loadFeatures({
// When features change, update the GrowthBook instance automatically
// Default: `false`
autoRefresh: true,
// If the network request takes longer than this (in milliseconds), continue
// Default: `0` (no timeout)
timeout: 2000
});
This code and after that just update some configuration on the GB cloud, after in sdk I won't see any changes until I restart the server.