![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@bedrockstreaming/form-redux
Advanced tools
`form-redux` is a redux slice for managing the forms steps.
form-redux
is a redux slice for managing the forms steps.
Since we are using react-hook-form
to persist data locally, we are only storing the form data and step information on each form submission.
npm install @bedrockstreaming/form-redux
Import and subscribe the reducer.
// reducers
import { reducer as forms } from '@bedrockstreaming/forms';
combineReducers({ forms, ... });
Use redux to control the form state.
// a form using actions
import { useEffect } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { FormBuilder } from '@bedrockstreaming/form-builder';
import {
getCurrentStepIndex,
isLastStep,
resetForm,
initForm,
setNextStep,
} from '@bedrockstreaming/form-redux';
import { schema, formId } from './path/to/my/config';
import { fooSubmitAction } from '<my-app-module>';
export const FooForm = () => {
const dispatch = useDispatch();
const currentStepIndex = useSelector(getCurrentStepIndex(formId));
const shouldSubmit = useSelector(isLastStep(formId));
useEffect(() => {
dispatch(initForm(formId, schema));
}, [dispatch]);
const handleSubmit = (fieldValues) => {
if (shouldSubmit) {
dispatch(fooSubmitAction(fieldValues));
dispatch(resetForm(formId));
} else {
dispatch(setNextStep(formId));
}
};
return (
<FormBuilder
dictionary={dictionary}
schema={schema}
onSubmit={handleSubmit}
currentStepIndex={currentStepIndex}
/>
);
};
Run nx test form-redux
to execute the unit tests via Jest.
FAQs
`form-redux` is a redux slice for managing the forms steps.
The npm package @bedrockstreaming/form-redux receives a total of 0 weekly downloads. As such, @bedrockstreaming/form-redux popularity was classified as not popular.
We found that @bedrockstreaming/form-redux demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.