emoji-picker-react 4.7.6 → 4.7.7-rc.0

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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.7.6",
2
+ "version": "4.7.7-rc.0",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -32,7 +32,7 @@ export function EmojiList() {
32
32
  const renderdCategoriesCountRef = React.useRef(0);
33
33
 
34
34
  return (
35
- <ul className={cx(styles.emojiList)}>
35
+ <ul className={cx(styles.emojiList)} suppressHydrationWarning>
36
36
  {categories.map(categoryConfig => {
37
37
  const category = categoryFromCategoryConfig(categoryConfig);
38
38
 
@@ -8,7 +8,6 @@ import {
8
8
  } from '../../config/useConfig';
9
9
  import { emojiByUnified } from '../../dataUtils/emojiSelectors';
10
10
  import { getSuggested } from '../../dataUtils/suggested';
11
- import { useIsMounted } from '../../hooks/useIsMounted';
12
11
  import { useUpdateSuggested } from '../context/PickerContext';
13
12
  import { ClickableEmoji } from '../emoji/Emoji';
14
13
 
@@ -20,7 +19,6 @@ type Props = Readonly<{
20
19
 
21
20
  export function Suggested({ categoryConfig }: Props) {
22
21
  const [suggestedUpdated] = useUpdateSuggested();
23
- const isMounted = useIsMounted();
24
22
  const suggestedEmojisModeConfig = useSuggestedEmojisModeConfig();
25
23
  const getEmojiUrl = useGetEmojiUrlConfig();
26
24
  const suggested = React.useMemo(
@@ -30,10 +28,6 @@ export function Suggested({ categoryConfig }: Props) {
30
28
  );
31
29
  const emojiStyle = useEmojiStyleConfig();
32
30
 
33
- if (!isMounted) {
34
- return null;
35
- }
36
-
37
31
  return (
38
32
  <EmojiCategory
39
33
  categoryConfig={categoryConfig}