To initialize the client SDK in a way that doesn't retrieve unneeded configuration data for metrics only, you can use the statsig.initializeAsync
method. This method should be called with your user object, client key, and options. The important option to pass here is “initializeValues.” You should pass an empty object {}
to this option. This will instruct the SDK not to make a network request for values, and just to serve them from that empty object. You don't need to await the call, but if you did it should return immediately anyway. All the event logging APIs should work just fine, but you won't have values for any feature gate or experiment.
If you want a subset of data, that's definitely possible. We have something called “target apps” which allows you to associate a subset of your configs with a specific target app, and then associate an SDK key with a target app. That key will only fetch those configs with the same target app. More information on this can be found in the Target Apps documentation.