Berlin

Results 69 comments of Berlin

toggle(true),toggle(false) very good already?

For the function `updateCache2` , arguments will be narrow to `Immutable`. If we don't want this, we can specify the generic state. However, type of function `updatedCache3` is `(state: Assignment[]...

it seems like this function ```typescript const updatedCache3 = produce((draft) => { const updatedAssignment = draft.find( ({contentBk}) => contentBk === assignment.contentBk ) if (updatedAssignment) { updatedAssignment.done = !updatedAssignment.done } })...

@Kallenju can you give a simple repo example?

thanks! It seems to work well. I think my mistake was caused by I do not restart nodejs server.

use this. https://www.reactuse.com/useCookie

@Ainias @ajayjaggi97 can you give a example? I'm very curious about how to actually implement this🤪.

can we use esm loader to do this? https://github.com/nodejs/loaders/blob/main/doc/use-cases.md