How to use the redoodle.setWith function in redoodle

To help you get started, we’ve selected a few redoodle examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ia-toki / judgels / judgels-frontends / raphael / src / routes / contests / contests / modules / contestReducer.ts View on Github external
  builder.withHandler(PutContest.TYPE, (state, payload) => setWith(state, { value: payload }));
  builder.withHandler(DelContest.TYPE, () => ({ value: undefined }));
github fawind / notes / app / src / store / reducers / notes.ts View on Github external
return sortNotes(state.map(note => {
      if (note.id !== payload.noteId) {
        return note;
      }
      return setWith(note, { content: payload.content, modified: new Date() });
    }));
  });
github ia-toki / judgels / judgels-frontends / raphael / src / routes / courses / courses / modules / courseReducer.ts View on Github external
  builder.withHandler(PutCourse.TYPE, (state, payload) => setWith(state, { value: payload }));
  builder.withHandler(DelCourse.TYPE, () => ({ value: undefined }));
github ia-toki / judgels / judgels-frontends / raphael / src / routes / courses / courses / single / chapters / modules / courseChapterReducer.ts View on Github external
  builder.withHandler(PutCourseChapter.TYPE, (state, payload) => setWith(state, payload));
  builder.withHandler(DelCourseChapter.TYPE, () => ({ value: undefined, name: undefined }));
github ia-toki / judgels / judgels-frontends / raphael / src / modules / webPrefs / webPrefsReducer.ts View on Github external
  builder.withHandler(PutGradingLanguage.TYPE, (state, gradingLanguage) => setWith(state, { gradingLanguage }));
  builder.withDefaultHandler(state => (state !== undefined ? state : INITIAL_STATE));
github ia-toki / judgels / judgels-frontends / raphael / src / modules / session / sessionReducer.ts View on Github external
  builder.withHandler(PutUser.TYPE, (state, payload) => setWith(state, { user: payload }));
  builder.withHandler(DelSession.TYPE, () => INITIAL_STATE);