Grilled Cheese

ExploreLog inSign up
PhotosVideosAllPeople
LatestRanked
export const cartEvents = eventGroup({
  source: 'Cart Page',
  events: { itemAdded: type<CartItem>(), cleared: type<void>() },
});

export const CartStore = signalStore(
  withState({ items: [] as CartItem[] }),
  withReducer(
    on(cartEvents.itemAdded, ({ payload }, state) => ({ items: [...state.items, payload] })),
    on(cartEvents.cleared, () => ({ items: [] })),
  ),
);
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-10-17 14:54:11 EDT