Skip to Content
Open SourceHydraLibraries@exodus/remote-config-atoms

@exodus/remote-config-atoms

Factory for creating read-only atoms for values stored in remote-config.

Install

npm i @exodus/remote-config-atoms

Usage

⚠️

As client-side access to remote-config is read-only, remoteConfigAtom.set(value) will always reject.

import { createRemoteConfigAtomFactory } from '@exodus/atoms';
 
// Remote config atoms
const createRemoteConfigAtom = createRemoteConfigAtomFactory({ remoteConfig });
 
const fiatOnrampConfigAtom = createRemoteConfigAtom({
  path: `dapps.fiatOnramp`,
  defaultValue: {},
});
Last updated on

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right