islands

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: MPL-2.0 Imports: 0 Imported by: 0

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

type CounterState struct {
	Count int
	Open  bool
}

func NewCounterState

func NewCounterState() CounterState

type Credentials added in v0.5.0

type Credentials struct {
	Token string
	Label string
}

Credentials nests a secret-resembling field. It exercises the nested persisted-store secret-field warning and should not be persisted in practice.

type FilterState

type FilterState struct {
	Query string
	Items []Item
}

func NewFilterState

func NewFilterState() FilterState

type Item

type Item struct {
	ID   string
	Name string
	Done bool
}

type NestedState

type NestedState struct {
	User  User
	Items []Item
	Flags []bool
	Count int
}

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

type SessionState struct {
	Token string
	Open  bool
}

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

type TextState

type TextState struct {
	Query string
}

func NewTextState

func NewTextState() TextState

type User

type User struct {
	Name string
	Open bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL