All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.react.useSyncExternalStore.kt Maven / Gradle / Ivy

@file:JsModule("react")
@file:JsNonModule

package react

/**
 * Available since 18.0
 *
 * @see Discussion
 */
external fun  useSyncExternalStore(
    subscribe: (onStoreChange: () -> Unit) -> Cleanup,
    getSnapshot: () -> Snapshot,
    getServerSnapshot: () -> Snapshot = definedExternally,
): Snapshot




© 2015 - 2025 Weber Informatics LLC | Privacy Policy