![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.
@automattic/data-stores
Advanced tools
This package contains a collection of @wordpress/data
-based stores that can be used to fetch data from various WordPress.com REST API endpoints.
It is meant to be helpful for projects developed inside the Calypso monorepo that don't want to use Calypso's (monolithic) Redux state tree.
To use stores from the package, import the store object and use it directly. The store will be registered on import.
import { Analyzer } from '@automattic/data-stores';
import { useSelect } from '@wordpress/data';
export const LinkColors = ( { url } ) => {
const colorsData = useSelect(
// Selecting the store itself provides automatic type inference for the selectors.
( select ) => select( Analyzer.store ).getSiteColors( url ),
[ url ] // Be sure to include any data dependencies used by the selector!
);
return (
<ul>
{ colorsData?.link.map( ( linkColors ) => (
<li key={ color.hex }>
Name: { color.name }. Hex: { color.hex }.
</li>
) ) }
</ul>
);
};
The stores in this package are written in TypeScript, and type definitions are generated as part of the build process. If you import and use the store object directly (instead of using the string-based store name), you'll get automatic type inference.
For example:
Some stores have not yet been migrated to use the new registration method. To use these stores, you must register them manually.)
import { FooStore } from '@automattic/data-stores';
import { useSelect } from '@wordpress/data';
const FOO_STORE = FooStore.register();
export const Foo = () => {
const foo = useSelect( ( select ) => select( FOO_STORE ).getFoo() );
return <span>{ foo }</span>;
};
FAQs
Calypso Data Stores.
The npm package @automattic/data-stores receives a total of 3,577 weekly downloads. As such, @automattic/data-stores popularity was classified as popular.
We found that @automattic/data-stores demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.