Skip to content

Add batching for when a user sells multiple skins #57

@vitorsaa2k

Description

@vitorsaa2k
  • Goal: Reduce de amount of requests being sent to the server
  • Depends On: None

Description

When the user sells multiple items one after the another, multiple requests are being sent to the server. Batching should be added in order to reduce the amount of requests being sent.

Tips on how to solve/should be solved

Tip

Use the new Tanstack library "TanStack Pacer" useBatchedCallback
Add optmistic updates with useMutate when clicking the selling button

To do

  1. Install the library "TanStack Pacer"
  2. Add optmistic updates with useMutate when selling an item
  3. Combine the optmistic updates with the useBatchedCallback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions