เอกสารในห้องสมุดของฉัน

แถบด้านข้างหลายราก

flex-layout

  • Getting Started

  • Guides

  • Reference

typed-rx-http

  • Getting Started

  • Guides

  • Reference

global-rx-state

  • Getting Started

  • Guides

  • Reference

webflux-fe-dev-assistant

reactive-mongo-dsl

โหมด Reducer

ใช้เมื่อการรวบรวมกฎการเปลี่ยนแปลงสถานะด้วย action ดีกว่าการเรียก setter โดยตรง


สถานะ reducer ที่ตั้งชื่อ

สร้างตัวลดระดับ Rxdispatch action โดยไม่เปลี่ยนแปลง state โดยตรง เหมาะสำหรับสถานะที่มีกฎการเปลี่ยนแปลงหลายอย่าง เช่น ตะกร้า, todo, editor state

tsx
ใช้ reducer tuple helper สำหรับ runtime key

หากต้องแยก reducer store ตาม runtime key เช่น workspace id, project id createRxReducerTupleให้ใช้

tsx