calycekr opened a new pull request, #3293: URL: https://github.com/apache/apisix-dashboard/pull/3293
Previously, upstream nodes were only synced to react-hook-form when clicking outside the table (useClickOutside). This caused data loss when users edited nodes and clicked Save without clicking elsewhere first. Now using useDebouncedCallback to sync form data immediately when: - Table values change (onValuesChange) - Node is deleted (delete button) - Node is added (add button) This fixes the issue where upstream nodes were not saved correctly in Routes, Services, and Upstreams forms. **Why submit this pull request?** - [x] Bugfix - [ ] New feature provided - [ ] Improve performance - [ ] Backport patches -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
