hooks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BreakpointValue

type BreakpointValue struct {
	// contains filtered or unexported fields
}

func UseBreakpoint

func UseBreakpoint() *BreakpointValue

func (*BreakpointValue) AddListener

func (s *BreakpointValue) AddListener(listener listenable.Listener[breakpoint.BreakPoint])

func (*BreakpointValue) NotifyListeners

func (s *BreakpointValue) NotifyListeners(newValue breakpoint.BreakPoint)

func (*BreakpointValue) RemoveListener

func (s *BreakpointValue) RemoveListener(listener listenable.Listener[breakpoint.BreakPoint])
type Navigate struct {
	// contains filtered or unexported fields
}

func UseNavigate

func UseNavigate() *Navigate
func (n *Navigate) AddListener(listener listenable.Listener[string])
func (n *Navigate) NotifyListeners(newValue string)
func (n *Navigate) Path() string
func (n *Navigate) RemoveListener(listener listenable.Listener[string])

type StateValue

type StateValue[T any] struct {
	// contains filtered or unexported fields
}

func UseState

func UseState[T any](initialValue T) (*StateValue[T], func(T))

func (*StateValue[T]) AddListener

func (s *StateValue[T]) AddListener(listener listenable.Listener[T])

func (*StateValue[T]) NotifyListeners

func (s *StateValue[T]) NotifyListeners(newValue T)

func (*StateValue[T]) RemoveListener

func (s *StateValue[T]) RemoveListener(listener listenable.Listener[T])

func (*StateValue[T]) Value

func (s *StateValue[T]) Value() T

Jump to

Keyboard shortcuts

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