-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add core-config #1426
feat: add core-config #1426
Conversation
🦋 Changeset detectedLatest commit: 5818ccc The changes in this PR will be included in the next version bump. This PR includes changesets to release 56 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
}; | ||
|
||
export const CoreConfigContext = createContext<CoreConfigContext>({ | ||
breakpoint: 1024, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно перенести getComponentBreakpoint из shared и добавить сюда.
Но я бы выпилил это и оставил только решение с провайдером.
При использовании standalone компонентов без контекста — будут дефолтные значения, которые можно будет переопределить через пропсы компонента
0b1e8f9
to
1d894a3
Compare
6e371d4
to
2545fa1
Compare
Собрана новая демка. |
602a317
to
13b1815
Compare
Собрана новая демка. |
Собрана новая демка. |
Pull Request Test Coverage Report for Build 11893072774Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Собрана новая демка. |
@@ -74,20 +74,15 @@ export const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>( | |||
|
|||
nativeScrollbar = Boolean(nativeScrollbarProp ?? nativeScrollbar); | |||
|
|||
const textareaRef = useRef<HTMLTextAreaElement>(null); | |||
const [textareaNode, setTextareaNode] = useState<HTMLTextAreaElement | null>(null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нельзя в стейт положить реф, некорректно с точки зрения react. подробнее и варианты решений тут
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@reme3d2y поправь пож-та)
5c850c1
to
0d64d33
Compare
Собрана новая демка. |
No description provided.