Skip to content

Conversation

@egordidenko
Copy link
Contributor

Description

Checklist

}) => {
const CTX_NAME = useMemo(() => LR.UID.generate(), [LR.UID.generate]);
const CTX_NAME = useMemo(
() => ctxName ?? LR.UID.generate(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably we need to store random uid in the ref to avoid uid change in the strict dev mode. AFAIK useMemo will be called twice in this case

'className',
])
"children",
"localName",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is localName?

@egordidenko egordidenko force-pushed the perf/react-adapter-and-uploader branch from 586e3ea to 7a6f021 Compare March 28, 2024 16:32
@egordidenko egordidenko force-pushed the perf/react-adapter-and-uploader branch from 7a6f021 to 98c8638 Compare March 28, 2024 16:43
@egordidenko egordidenko merged commit ef3b027 into main Mar 28, 2024
@egordidenko egordidenko deleted the perf/react-adapter-and-uploader branch March 28, 2024 17:17
nd0ut pushed a commit that referenced this pull request Mar 28, 2024
feat(react-uploader): added types for build (#3)

* feat(react-uploader): added types for build

* feat(react-uploader): added types refUploadCtxProvider (opt)

* feat: added partial types config/events

* feat: export UploadCtxProvider

* feat(react-uploader): added README.md
feat: added blocks alpha versions (#2)
Perf/props events ctx (#1)

* feat(react-uploader): removed from props ctxName, ctxCssSrc

* feat(react-adapter): removed unused dependency

* perf(react-uploader): improved and simplified receiving events from props

* feat(react-uploader): added memo for ctxName

* feat(react-adapter): added types for build

* feat(react-uploader): remove @ts-ignore

* feat: added vite-plugin-dts
feat: added LICENSE
feat: added common README.md
feat: implement react component and adapter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants