We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792a8fa commit eb6ca11Copy full SHA for eb6ca11
packages/history/index.ts
@@ -48,6 +48,14 @@ export type Search = string;
48
*/
49
export type Hash = string;
50
51
+/**
52
+ * An object that is used to associate some arbitrary data with a location, but
53
+ * that does not appear in the URL path.
54
+ *
55
+ * @see https://github.com/ReactTraining/history/tree/master/docs/api-reference.md#location.state
56
+ */
57
+export type State = object | null;
58
+
59
/**
60
* A unique string associated with a location. May be used to safely store
61
* and retrieve data in some other storage API, like `localStorage`.
0 commit comments