actionSnippetById.js 234 B

123456
  1. import { actionPromise } from "./actionPromise";
  2. import { snippetById } from "./requests";
  3. export const actionSnippetById = (id) => async (dispatch) => {
  4. return await dispatch(actionPromise("findSnippetById", snippetById(id)));
  5. };