PRIMARY_BUTTON_CLICK
triggers an epic called UiSdlEpicDeleteAfterExample
. effectTriggers
effectTriggers
is to add an epic to a component. trigger
<currentFilename>.<action>
.effectType
UiSdlApplicationState
is a type that contains a collection of actions and reducers. To create your own custom action and reducers, you create your own UiSdlApplicationState
Type and mixes
with UiSdlApplicationState
.scr>ui
, similar to the example shown. You must create two files with the same name:myApplicationStateCollections.c3typ
: declare the actions and reducers.myApplicationStateCollections.ts
: write the actions and reducers.myApplicationStateCollection.c3typ
, you must declare your Application State as a Type and must mixes
with UiSdlApplicationState
. ui>c3>meta
, create a file for your application state: myApplicationStateCollections
refers to the type you declared that holds all of the reducers and actions. The code block myApplicationStateCollections
refers to the application state Type that is created in the in the previous example: myApplicationStateCollections.c3typ
. applicationStateRef
. applicationStateRef
in the exampleUI.HomeContent.json
file. function epic(action, state) => new state
. Epic
in the file name when creating an epic. To declare a new custom epic, you must declare the epic in a c3typ
file and must mixes
with UiSdlEpic
. To create the new custom epic, you must create the epic in a ts
file.getConfigFromApplicationState(applicationState, state, reducer)
. getConfigFromApplicationState
, you must import the function: import {getConfigFromApplicationState} from '@c3/ui/UiSdlApplicationState';
c3ShowType(<UISdlComponentName>)
and click on the Index tab.