ngx-sonner icon indicating copy to clipboard operation
ngx-sonner copied to clipboard

Usage in `effect` causes infinite render loop

Open daveHylde opened this issue 6 months ago • 2 comments

Please provide the environment you discovered this bug in.

Sonner: 3.1.0 Angular: 20 Firefox Linux

Description

This will start an infinite loop. Would love to be able to use toasts in signal based logic. 😃

    effect(() => {
      toast.info('hi');
    });

P.s. great job! Love the library!

Please provide the exception or error you saw


Other information

No response

I would be willing to submit a PR to fix this issue

  • [ ] Yes
  • [x] No

daveHylde avatar May 31 '25 13:05 daveHylde