#sam_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1298909822137405513
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
- Every time that a user opens the payment model, should I be creating a new subscription?
If they keep opening an closing the model then loads of subscriptions will be created. Is this normal?
This is not normal. You should ensure that your React component for the modal is loaded only once unless there is any change in the subscriptions
- Should I be tracking the price of the subscription in a draft state and update at the end? Or be consistently using the price from the latest_invoice in the subscription data and updating it everyitme the user makes a change/api call?
Could you share what you're trying to do here? A subscription doesn't have a draft status, only Invoice has.