forked from meaton/react-webpack-comp-reg
-
Notifications
You must be signed in to change notification settings - Fork 1
URL parameters
Twan Goosen edited this page Dec 30, 2015
·
1 revision
The Main
component evaluates the query parameters before mount. Depending on the values of the optional parameters item
/itemId
, space
/registrySpace
, type
and teamId
, a number of actions gets triggered that initialise the application into the appropriate state (i.e. selected space/type, loaded item).
Notice that the place of the query parameters in the URL depends on the 'history' that is used. By default, hash history is used, which means that the parameters are not appended to the page url but to the 'fragment' that initially takes the form of #/
after the page URL, e.g. ComponentRegistry#/?itemId=abcd
. See React Router/Histories for more information.