Quantcast
Channel: reset recoil state to default not working - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Plargato for reset recoil state to default not working

useResetRecoilState returns a function that resets the recoil state. It should be used like this:import {filter} from '..appl/recoil/atoms';import { useResetRecoilState } from 'recoil';onSignOut = ()...

View Article



reset recoil state to default not working

tried to reset recoil state to its default value using useResetRecoilStatebut not workingThis is my codeimport {filter} from '..appl/recoil/atoms';import { useResetRecoilState } from 'recoil';let...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images