-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed clearing of session data. Added optional session clearing on Pr…
…ovideSession unmount. Added global methods for getting the current session contexts. Updated README. Upgrade to 1.0.3
- Loading branch information
Showing
19 changed files
with
612 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ node_modules | |
|
||
# builds | ||
build | ||
dist | ||
.rpt2_cache | ||
|
||
# misc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { SessionDispatchFunc, SessionGenericData, SessionValueType } from "./types"; | ||
export declare class Dispatcher<DataType extends SessionGenericData> { | ||
dispatchers: Partial<{ | ||
[key in keyof DataType]: [SessionDispatchFunc]; | ||
}>; | ||
dispatch(key: keyof DataType, value: SessionValueType): void; | ||
register(key: keyof DataType, dispatchFunc: SessionDispatchFunc): void; | ||
unregister(key: keyof DataType, dispatchFunc: SessionDispatchFunc): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { ProvideSession, getSessionContexts, hasSessionContext, } from "./provider"; | ||
export { useSession } from "./use-session"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.