Skip to content

Proposal: Component context #2327

Closed Answered by camertron
camertron asked this question in Ideas
May 25, 2025 · 1 comments · 2 replies

You must be logged in to vote

Alright, I put together a general-purpose context sharing gem I'm calling weft. You can see the code and README here: https://github.com/camertron/weft. It borrows some code I found when researching Rails' current attributes, and allows storing context in either thread- or fiber-local storage.

I'd love to hear any and all feedback 😄

Honestly the code is so minimal it almost feels like this concept would be better applied to codebases as a copy/paste-able snippet rather than a full-blown gem. Curious to hear what others think.

Replies: 1 comment 2 replies

camertron
Jun 6, 2025
Maintainer Author

You must be logged in to vote
2 replies
@boardfish

@camertron

camertron Jun 8, 2025
Maintainer Author

Answer selected by joelhawksley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants