Course lesson

Return Completely New State from an Immer Producer

Occasionally, you might want to write a producer that doesn’t change the draft, but rather returns a completely new data set. This can be achieved by using the return keyword.

Duration
1 min
Access
Pro
Transcript
Available

Occasionally, you might want to write a producer that doesn’t change the draft, but rather returns a completely new data set. This can be achieved by using the return keyword.