Closed Th1nkK1D closed 1 year ago
ตอนนี้ design ไม่ได้ทำ isSubmitting state (กดแล้วกำลังยิง Firebase) กับ success state ไว้ คิดว่าควร implement ui แบบเร็วๆ อย่างน้อยให้ user รู้ว่าอยู่ state ไหน (และถ้ามีเวลา error state ก็ดี)
ตอนนี้ form ใช้ lib felte ช่วย ซึ่ง createForm return isSubmitting ที่อาจจะใช้ได้ แต่ตอนส่งสำเร็จไม่มั่นใจว่าใช้ท่าไหนดี
@Th1nkK1D ผม handle ง่ายๆแบบนี้ไปนะครับ
ปล. ใช้ boolean ง่ายๆไปครับ อ่าน felte ไม่ทัน