ã¯ããã« React v18ãã useSyncExternalStore ã¨ãã Hooks ã追å ããã¾ããã å¤é¨ãã¼ã¿ã½ã¼ã¹ããã®ãã¼ã¿èªã¿åºãããã¼ã¿ã®è³¼èªã«æ¨å¥¨ããã Hooks ã¨ã®èª¬æãããã¾ãã ãã®å¤é¨ãã¼ã¿ã½ã¼ã¹ã¨ããã®ã¯ãä¾ãã° React ã®ç¶æ 管ç対象å¤ã® Globalãããã㯠Module ã«ä¿æãã¦ããå¤ãå«ã¾ããã®ã§ã¯ã¨èãã¾ããã ããã§æ¬è¨äºã§ã¯ Module Scope å ã§ä¿æãã¦ãã Map Object ã Observable ã«ããuseSyncExternalStore ã§ç£è¦ã§ããããã«ãã¦ã¿ã¾ãã å®éã®ã³ã¼ã ObservableMap ã®ä¾ ä¾ãã°ãããªæãã®å®è£ ã«ãªãã§ããããã type MapEventDetail<K, V> = | { type: "delete"; key: K; } | { type: "set";
{{#tags}}- {{label}}
{{/tags}}