fkhadra / fkhadra/react-toastify

Feature request: Be able to update all existing toasts without knowing their ids

Open
#828 2 comments 0 reactions 0 assignees View on GitHub
Feature Request
Dominant language
TypeScript
Stars
13.4k
Forks
741
PR merge metrics
No merged PRs in 30d

Description

**Do you want to request a *feature* or report a *bug*?**
Feature

---
**What is the current behavior?**
When I want to update a toast, I have to know its id
```typescript
toats.update(toastId, { /* options */ })
```
---
**What is the expected behavior?**
I want to update all current toasts that are showing on the screen, without knowing all their ids and iterating through.
```typescript
toast.update(null, { /* options */ }) // or another signature like `toast.update(options)`
```
It will work just like `toast.dismiss()` which closes all existing toasts without passing all their ids in.

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing toast.update and toast.dismiss entry points to understand their current argument handling and how dismissing all toasts is exposed. Compare the proposed update signatures, then verify that the chosen behavior updates every currently displayed toast without requiring individual ids and preserves existing id-based updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.