1.1.0 • Published 11 months ago

@exodus/remote-config-atoms v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@exodus/remote-config-atoms

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

Install

yarn add @exodus/remote-config-atoms

Usage

!WARNING 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: {},
})