Return Completely New State from an Immer Producer

Share this video with your friends

Send Tweet

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.