involveMINT / iMPublic

Public involveMINT repo
https://app.involvemint.io
GNU Affero General Public License v3.0
11 stars 28 forks source link

Feat 313 #341

Closed fogunsan closed 4 months ago

fogunsan commented 5 months ago

Current implementation involves accessing the this.user.offers.selectors.offers$ observable and tying their states to the storefronts states if listed as private or unlisted. The offer is changed with this.user.offers.dispatchers.update, and the observable triggers a new value, leading to another iteration, thus the throw helps to escape from this loop.

Fixed this issue by including a "Take(1)" so that only the first emission is processed.

https://github.com/involveMINT/iMPublic/assets/106701657/ac219ebd-123d-4b68-84c9-48a4c3c43346