3.0.0
- Library internals 100% type safe (remove @ts-ignores)
- Easier API with removing the key which needed to be unique
Breaking changes
export const cartProductsState = newRidgeState<CartProduct[]>({
key: "CartState", // needs to be unique across other global state
defaultState,
});
To
export const cartProductsState = newRidgeState<CartProduct[]>([
{ id: 1, name: "Product" },
]);