Skip to content

Commit 540a4c7

Browse files
Merge pull request #556 from GetStream/vishal/docs-fix
Fixing docgen issue
2 parents d0f07a3 + 79a22d1 commit 540a4c7

File tree

6 files changed

+7646
-23
lines changed

6 files changed

+7646
-23
lines changed

docs/build/bundle.13de61e4.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/build/bundle.13de61e4.js.LICENSE.txt

Lines changed: 7637 additions & 0 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
</head>
1010
<body>
1111
<div id="rsg-root"></div>
12-
<script src="build/bundle.852685aa.js"></script>
12+
<script src="build/bundle.13de61e4.js"></script>
1313
</body>
1414
</html>

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@
181181
"block-no-empty": null
182182
}
183183
},
184+
"resolutions": {
185+
"ast-types": "^0.14.0"
186+
},
184187
"browserslist": [
185188
">0.2%",
186189
"not ie <= 11",

src/components/Chat/Chat.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,14 @@ const Chat = ({
5252
const clientMutes = client?.user?.mutes;
5353

5454
useEffect(() => {
55+
if (!client) return;
5556
const userAgent = client.getUserAgent();
5657
if (!userAgent.includes('stream-chat-react')) {
5758
// should result in something like:
5859
// 'stream-chat-react-2.3.2-stream-chat-javascript-client-browser-2.2.2'
5960
client.setUserAgent(`stream-chat-react-${version}-${userAgent}`);
6061
}
61-
// don't want client in dep array because it is a required
62-
// prop for this component and we only want this run on mount
63-
// eslint-disable-next-line react-hooks/exhaustive-deps
64-
}, []);
62+
}, [client]);
6563

6664
useEffect(() => {
6765
setMutes(clientMutes || []);

yarn.lock

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2384,30 +2384,13 @@ ast-types-flow@^0.0.7:
23842384
resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad"
23852385
integrity sha1-9wtzXGvKGlycItmCw+Oef+ujva0=
23862386

2387-
2388-
version "0.13.3"
2389-
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.13.3.tgz#50da3f28d17bdbc7969a3a2d83a0e4a72ae755a7"
2390-
integrity sha512-XTZ7xGML849LkQP86sWdQzfhwbt3YwIO6MqbX9mUNYY98VKaaVZP7YNNm70IpwecbkkxmfC5IYAzOQ/2p29zRA==
2391-
2392-
2387+
[email protected], [email protected], ast-types@^0.13.2, ast-types@^0.14.0, ast-types@^0.7.2, ast-types@~0.13.2:
23932388
version "0.14.2"
23942389
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.14.2.tgz#600b882df8583e3cd4f2df5fa20fa83759d4bdfd"
23952390
integrity sha512-O0yuUDnZeQDL+ncNGlJ78BiO4jnYI3bvMsD5prT0/nsgijG/LpNBIr63gTjVTNsiGkgQhiyCShTgxt8oXOrklA==
23962391
dependencies:
23972392
tslib "^2.0.1"
23982393

2399-
ast-types@^0.13.2, ast-types@~0.13.2:
2400-
version "0.13.4"
2401-
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.13.4.tgz#ee0d77b343263965ecc3fb62da16e7222b2b6782"
2402-
integrity sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==
2403-
dependencies:
2404-
tslib "^2.0.1"
2405-
2406-
ast-types@^0.7.2:
2407-
version "0.7.8"
2408-
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.7.8.tgz#902d2e0d60d071bdcd46dc115e1809ed11c138a9"
2409-
integrity sha1-kC0uDWDQcb3NRtwRXhgJ7RHBOKk=
2410-
24112394
astral-regex@^1.0.0:
24122395
version "1.0.0"
24132396
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9"

0 commit comments

Comments
 (0)