question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recoil utils export

See original GitHub issue

I realize this is still upcoming and I’m not asking for a timeline or anything. I’m just creating some educational material on this and want to make sure that I’m making the correct assumptions.

All I want to know is that when the utils like atomFamily are exported, how will that be done?

// option 1 (my personally preferred option)
import {atomFamily} from 'recoil'

// option 2
import {utils} from 'recoil'
const {atomFamily} = utils

// option 3
import {atomFamily} from 'recoil/utils'

// something else?

I realize that nobody can make any guarantees until it’s actually released, but if someone can give me any idea of what it might be like that would be helpful 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mondaychencommented, Jun 1, 2020

Guess with 0.0.8 we can close this?

0reactions
kentcdoddscommented, Jun 1, 2020

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

selector(options) - Recoil
Selectors represent a function, or derived state in Recoil. You can think of them as similar to an "idempotent" or "pure function" without...
Read more >
Recoil in action: Building a reusable code block component
Edit the store/index. js file with the code below: import { atom } from 'Recoil'; export const codeLanguageState = atom({ key: ' ...
Read more >
How to Use Recoil for State Management in Your React Projects
recoil /atoms/todoAtom"; import { generateUID } from "../utils/uuid"; export const TodoItemCreator = () => { const [inputValue, ...
Read more >
Build your own Recoil - ITNEXT
Recoil is a new experimental state management library for React provided by ... export function useRecoilState<T>(atom: AtomType<T>): [T, ...
Read more >
React State Management with Recoil - Reflect.run
We start by importing the atom and selector utils from Recoil: ... export interface Todo { id: number, text: string, completed: boolean } ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found