emoji-picker-react 4.0.0-rc.4 → 4.0.0-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6471,9 +6471,11 @@ function setRecentlyUsed(emoji, skinTone) {
6471
6471
  nextList.length = Math.min(nextList.length, 14);
6472
6472
 
6473
6473
  try {
6474
- var _window3;
6474
+ setTimeout(function () {
6475
+ var _window3;
6475
6476
 
6476
- (_window3 = window) == null ? void 0 : _window3.localStorage.setItem(RECENTLY_USED_LS_KEY, JSON.stringify(nextList));
6477
+ (_window3 = window) == null ? void 0 : _window3.localStorage.setItem(RECENTLY_USED_LS_KEY, JSON.stringify(nextList)); // Prevents the change from being seen immediately.
6478
+ }, 10);
6477
6479
  } catch (_unused2) {// ignore
6478
6480
  }
6479
6481
  }