B
Size: a a a
B
A
NF
B
TP
export const getMovies = createEffect({
async handler(searchedValue) {
const response = await axios.get(`https://www.omdbapi.com/?s=${searchedValue}&apikey=####`)
return response.data
}
})
export const setPending = createEvent()
export const $isPending = createStore(false)
getMovies.pending.watch(pending => setPending(pending)
)AO
AO
AO
TP
AO
TP
NF
NF
TP
NF
AO
TP
TP
AO
AO