-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
@preact/signals-react@2.0.0 not re-exporting useSignals #473
Comments
I think it's better to just replace |
#472 Like that |
Seems inconsistent to re-export |
What is the problem to import it from runtime? It's logically little bit different stuff |
Adds an extra import statement, for no reason. It’s just cleaner to have
all of a modules exports in one place.
…On Fri, Dec 22, 2023 at 14:25 Valerii Smirnov ***@***.***> wrote:
What is the problem to import it from runtime? It's logically little bit
different stuff
—
Reply to this email directly, view it on GitHub
<#473 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJPPVAV2JOUYM44DVW2F53YKYCFXAVCNFSM6AAAAABA7M4NL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGEYDMMJSG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Cleanliness isn't so much relevant as intended default usage -- Not 100% sure what Andre had meant for though. @andrewiggins friendly ping if you're not too busy with holiday stuff |
This comment was marked as duplicate.
This comment was marked as duplicate.
Just noting here that readme on npm site still shows outdated documentation. |
It will be updated with the next release. It is possible to release it with only changes in readme, too |
According to the docs, I should be able to
import { useSignals } from '@preact/signals-react'
, but sinceuseSignals
is not re-exported, I need to do this instead:import { useSignals } from '@preact/signals-react/runtime'
.The text was updated successfully, but these errors were encountered: