Skip to content

A tool for tunneling state/props down through a component stack.

License

Notifications You must be signed in to change notification settings

m10/stencil-state-tunnel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm

Stencil State Tunnel

This project was built to provide additional functionality to developers working with stencil components and sharing state across components and through slots. The API was inspired by React's Context.

There are many cases within component based application development where you will want to drill state down through props to children and children's children and so on. This project was created in order to alleviate the need for pass props deep through an application's component structure.

There are 2 primary use cases where this tool makes sense.

  1. Building a stencil application and need to store application state in a centralized location.
  2. Building a collection of components that need to share state but have no direct 'line of sight' between the component relationships (ie most likely from using slot).

More information on usage and API can be found in our wiki.

About

A tool for tunneling state/props down through a component stack.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 89.6%
  • HTML 7.5%
  • CSS 2.9%