Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CounterProps ¶
type CounterProps struct {
Label string
}
type CounterState ¶
func NewCounterState ¶
func NewCounterState() CounterState
type Credentials ¶ added in v0.5.0
Credentials nests a secret-resembling field. It exercises the nested persisted-store secret-field warning and should not be persisted in practice.
type FilterState ¶
func NewFilterState ¶
func NewFilterState() FilterState
type NestedState ¶
func NewNestedState ¶
func NewNestedState() NestedState
type OtherState ¶
type OtherState struct {
Name string
}
func NewOtherState ¶
func NewOtherState() OtherState
type ProfileState ¶ added in v0.5.0
type ProfileState struct {
Name string
Account Credentials
}
ProfileState carries a nested Credentials value, so persisting it would write the nested Token to browser storage even though no top-level field looks like a secret.
func NewProfileState ¶ added in v0.5.0
func NewProfileState() ProfileState
type SessionState ¶ added in v0.5.0
SessionState carries a secret-resembling field. It exists to exercise the persisted-store secret-field warning and should not be persisted in practice.
func NewSessionState ¶ added in v0.5.0
func NewSessionState() SessionState
type StringCountState ¶ added in v0.5.0
type StringCountState struct {
Count string
}
StringCountState declares a Count field typed as string. It exists to exercise the store/local-state field-type conflict diagnostic against CounterState's int Count.
func NewStringCountState ¶ added in v0.5.0
func NewStringCountState() StringCountState
type TaggedState ¶
type TaggedState struct {
Count int `json:"count,omitempty"`
}
func NewTaggedState ¶
func NewTaggedState() TaggedState