Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-12-03 22:42:33 EST

PhotosVideosAllPeople
LatestRanked
?Unknown authorDec 2, 2026, 12:53 PM

Love this nice touch of being able to quickly free your code from constraints in testing:

#NgRx #Angular #Testing #TypeScript

import { unprotected } from '@ngrx/signals/testing';

const store = TestBed.inject(CartStore);
patchState(unprotected(store), {
  items: [{ id: '1', name: 'Keyboard', price: 99 }],
});
@javascriptcon.bsky.socialDec 2, 2026, 9:12 AM

🔄 Close the reactive loop in #Angular!

From loading data to editing and saving, discover how @manfredsteyer.bsky.social connects:

⚡ Resource API
📝 Signal Forms
🔄 Mutation API
🧩 #NgRx Signal Store

💡 Explore the complete reactive workflow:
https://tinyurl.com/wknr4a4n

#iJS

tinyurl.comClosing the Reactive Loop in AngularAngular’s Resource API brings asynchronous data loading into a reactive flow, but developers still need a clear approach for editing and saving that data through forms. This article explores how the Mutation API, Signal Forms, and NgRx Signal Store work together to create a complete reactive data flow from backend data, through editing, and back to the server.
?Unknown authorNov 27, 2026, 12:28 PM

I still am not sure if I prefer having many localized stores with NgRx signal store vs having just one global store with features separated via object keys

#Angular #NgRx #SignalStore #WebDev

// Global singleton (auth, feature flags, cart)
export const AppStore = signalStore(
  { providedIn: 'root' },
  withState({ user: null as User | null }),
);

// Scoped per component (auto-destroyed on leave)
@Component({ providers: [CheckoutStore], template: `...` })
export class CheckoutPage { store = inject(CheckoutStore); }
?Unknown authorNov 26, 2026, 2:19 PM

A store must read like a book filled with chapters of features

#Angular #NgRx #SignalStore #WebDev

?Unknown authorNov 24, 2026, 12:18 PM

No matter how many layers of abstraction you build around them, it all comes down to exhaustMap vs concatMap vs switchMap... can you show which use case goes to which operator?

#RxJS #NgRx #Angular #WebDev

Quiz infographic: Match three RxJS flattening operators — 1 switchMap (cancel previous, run latest), 2 exhaustMap (ignore new until current finishes), 3 concatMap (queue and run in strict order) — to three shuffled use cases: A Checkout / Pay Now button double-click, B Ordered autosave queue, C Search-as-you-type.
?Unknown authorNov 24, 2026, 11:07 AM

I sincerely do not know if injecting another store into the current store is the way to go or if there is a proper way of doing this

#Angular #NgRx #SignalStore #WebDev

export const CartStore = signalStore(
  withState({ items: [] as Item[] }),
  withComputed((store, auth = inject(AuthStore)) => ({
    discount: computed(() =>
      auth.isPro() ? store.subtotal() * 0.2 : 0
    ),
  })),
);
?Unknown authorNov 20, 2026, 1:37 PM

I loved entity store in the regular NgRx store and continue loving it in Signal Store

See how easy it is to update or remove multiple entities:

#Angular #NgRx

TypeScript code in a dark editor tab named notifications.store.ts. A Notification interface has id, text and read. NotificationsStore is a signalStore with withEntities<Notification>(), a computed unread count of entities that are not read, and two methods: markAllRead calls patchState(store, updateAllEntities({ read: true })), highlighted, and clearRead calls patchState with removeEntities((n) => n.read), also highlighted.
?Unknown authorNov 19, 2026, 10:27 AM

I think the `signalState` in NgRx is the closest we ever got to the React community debates about using `useReducer` over `useState`

#Angular #NgRx

Angular code in a dark editor tab named product-filters.ts. A Sort type is 'price' or 'rating'. A ProductFilters component's template has an input bound to filters.query() that calls search($event), and a paragraph "Sorted by" filters.sort(). The class field filters = signalState({ query: '', sort: 'price' as Sort, inStock: false }) is highlighted, and the search method reads the input value and calls patchState(this.filters, { query }), also highlighted.
?Unknown authorNov 17, 2026, 10:41 AM

`withProps()` in NgRx signal store is super cool since you can just drop whatever stuff you need along the way (services, injectables, constants) into it and use it downstream

#NgRx #Angular #SignalStore #WebDev

TypeScript code in a dark editor tab named todos.store.ts. A TodosStore is created with signalStore and state todos. A highlighted withProps block adds api: inject(TodosApi) and pageSize: 20. Below, withMethods defines an async load(page) method that calls store.api.load({ page, size: store.pageSize }), highlighted, and patches the todos into state.
?Unknown authorNov 14, 2026, 3:11 PM

Even when not using the Events Plugin with NgRx Signal Store, it is still preferable to write more encompassing "action"-type methods rather than crude "setLoading", "setWhatever" methods

It is okay if your methods update multiple pieces of state

#Angular #NgRx

TypeScript code in a dark editor tab named cart.store.ts. An NgRx CartStore uses withEntities for cart items and withState with drawerOpen: false. Its one method, addToCart(product), highlighted with the comment "what the user did: adds the item and opens the cart drawer", raises the quantity if the product is already in the cart or adds it with quantity 1, and sets drawerOpen to true in the same patchState call. A last comment shows a component only calling cart.addToCart(product) from an Add to cart button.
?Unknown authorNov 12, 2026, 1:40 PM

2) when writing new features, always check if there is an existing SignalStore feature that can be extended (or used outright) instead of piling more code on top of it

Will save you a lot of trouble

#Angular #NgRx #AgenticCoding

?Unknown authorNov 5, 2026, 10:23 AM

3. Throw in the events plugin and a parent global signal store, and you have everything in NgRx Store + better composability

#Angular #NgRx #WebDev

?Unknown authorNov 4, 2026, 6:30 PM

Don't forget to subscribe to our YouTube channel! 🔔

www.youtube.com/@AngularSpac...

#Angular #NgRx #WebDev

?Unknown authorNov 3, 2026, 1:07 PM

Do not forget to tune in tomorrow! We will be diving deep into NgRx Toolkit, building a project live and exploring all of its tools (there's a LOT of them!)

And... look out for a surprise guest 😉

www.youtube.com/watch?v=yDvh...

#Angular #NgRx #Livestream

"Hands on: NgRx Toolkit! Supercharging SignalStore", November 4, 4:30 PM UTC. Host Armen Vardanyan on a purple space background, with the Angular Space TV and Angular logos.
?Unknown authorNov 2, 2026, 2:19 PM

If you want to learn more, join our livestream this Wednesday! We will build a project with NgRx Toolkit live and explore all the interesting features

#Angular #NgRx #SignalStore

?Unknown authorNov 2, 2026, 1:01 PM

Last week we talked about TanStack Query in Angular, and naturally, next we are going to cover NgRx Toolkit!

I'm telling you, if you are already using Signal Store, this library is a must-have for your Angular apps

Join me this Wednesday as we explore it in depth 😉

#Angular #NgRx #Livestream

"Hands on: NgRx Toolkit! Supercharging SignalStore", November 4, 4:30 PM UTC. Host Armen Vardanyan on a purple space background, with the Angular Space TV and Angular logos.
?Unknown authorOct 27, 2026, 10:57 AM

One thing people may struggle with in signals (and, subsequently, NgRx Signal Store) is that signals, ultimately, are wrappers around values (so, objects)

This means all the object reference things and gotchas apply. See here:

#Angular #NgRx #Signals #WebDev

An NgRx Signal Store in cart.store.ts. Line 9, highlighted, mutates the array in place inside patchState:

export const CartStore = signalStore(
  withState({ items: [] as Item[] }),
  withComputed((store) => ({
    count: computed(() => store.items().length),
  })),
  withMethods((store) => ({
    addItem(item: Item) {
      patchState(store, (state) => {
        state.items.push(item); // same array, new contents
        return { items: state.items };
      });
    },
  })),
);

// After calling addItem() twice:
// the list renders 2 items, but count() is still 0
?Unknown authorOct 19, 2026, 2:58 PM

This is one of the reasons (NOT the main one) why I always use the events plugin:

#Angular #NgRx #TypeScript #WebDev

export const cartEvents = eventGroup({ source: 'Cart Page', events: {
  added: type<CartItem>(), removed: type<number>(),
} });
export const CartStore = signalStore(
  withState({ items: [] as CartItem[] }),
  withReducer(
    on(cartEvents.added, ({ payload }, { items }) => ({ items: [...items, payload] })),
    on(cartEvents.removed, ({ payload }, { items }) => ({ items: items.filter((i) => i.id !== payload) })),
  ),
);
@mspk-97.bsky.socialOct 16, 2026, 11:35 AM

NgRX Store v22 sharpens selector memoization & typings, plus updates effects and providers. Upgrade right: audit reducers for immutability and leverage new APIs. Stay reactive, avoid bugs. #Angular #NgRX #StateManagement #TypeScript #Frontend #WebDev https://blog.mspk.me/posts/what-s-new-and-differe