Trouble Modifying Atom Value in Vue Composable with Effect Typescript Library

anyone have any luck getting Atom working in a vue composable? I tried converting the react version Lucas did in his video series and while I can get an initial value from my api client I can't seem to modify the existing value.
the only code I have working so far:
const runtime = Atom.runtime(ApiClient.Default)

const apiKeysRemote = runtime.atom(
  Effect.gen(function* () {
    const api = yield* ApiClient
    const keys = yield* api.http.apiKeys.listApiKeys()

    return keys
  })
)

export const useApiKeys = () => {
  const passThrough = useAtomValue(() => apiKeysRemote)

  const apiKeys = computed({
    get:() => passThrough.value?.value?.apiKeys
  })

    const loading = computed(() => passThrough.value?.waiting)
Was this page helpful?