How to use the @reactorx/core.Volume.from function in @reactorx/core

To help you get started, we’ve selected a few @reactorx/core 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 querycap / reactorx / @reactorx / form / src / Form.tsx View on Github external
return;
        }

        cb(formState.values);
      };
    };

    return {
      formName,
      getFormState,
      getFormValues,
      startSubmit,
      endSubmit,
      setErrors,
      createSubmit,
      state$: Volume.from(store$, (state) => get(state, formKey(formName), { values: initialValues })),
    };
  }, [store$, formName]);