Skip to content

Instantly share code, notes, and snippets.

View jon301's full-sized avatar

Jonathan Trang jon301

View GitHub Profile
@jon301
jon301 / chatsSlice.ts
Created September 6, 2022 13:28 — forked from markerikson/chatsSlice.ts
Nested `createEntityAdapter` example
// Example of using multiple / nested `createEntityAdapter` calls within a single Redux Toolkit slice
interface Message {
id: string;
roomId: string;
text: string;
timestamp: string;
username: string;
}