Skip to content

atomWithRefresh example from the docs doesn't work #2995

Answered by dai-shi
a10nik asked this question in Bug report
Discussion options

You must be logged in to vote

// Here we are doing nothing even though refresh is called. Let's print a warning

Yeah, let's throw an error in DEV mode.

if (import.meta.env?.MODE !== 'production') {
  throw new Error(...)
}

Can you modify #2996 for this?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dai-shi
Comment options

@a10nik
Comment options

@dai-shi
Comment options

Answer selected by a10nik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants