The onChange callback of the antd component needs to be executed immediately to change the value and anti-shake to save interface overhead.

Article directory Ordinary use Use anti-shake to save money The page function is complex and requires value control The callback requires some code to be executed immediately, and some code to be executed with anti-shake delay. useRef useCallback summary Normal use When we use Antd’s input or select to search, the onChange callback will be […]

C# or wpf or MFC ComboBox.OnSelectionChanged(SelectionChangedEventArgs) Get the changed value, don’t get it directly. Another pit

WPF version C# using FT_Tools; using MSFramework. Common; using System; using System.Collections.Generic; using System. ComponentModel; using System. Linq; using System. Text; using System. Threading. Tasks; using System. Windows; using System. Windows. Controls; using System. Windows. Data; using System. Windows. Documents; using System. Windows. Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System. Windows. Shapes; using WpfM20UpdateFW; namespace […]

[Solved] ExpressionChangedAfterItHasBeenCheckedError Error Notes, and Change Detection

Error Notes for ExpressionChangedAfterItHasBeenCheckedError Related change detection behavior A running Angular program is a tree of components. During change detection, Angular checks each component in the following order, (see Listing 1 below) Update binding properties of all child components/directives Three declaration cycles that call all child components/directives: OnChanges, ngOnInit, ngDocheck Perform change detection for subcomponents […]