Skip to content

3.0.0

Compare
Choose a tag to compare
@RichardLindhout RichardLindhout released this 16 May 13:51
  • 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" },
]);