GrammAcc

GrammAcc

CacheMeIfYouCan - v0.2.0 Small Feature and Docs Update Released

Small feature for CacheMeIfYouCan - Small Library for Computed Assigns in LiveView

The cb in the @reactive_cache can now accept either one or two arguments. This change is backwards compatible, but I am bumping the version to 0.2.0 because I also moved the type definitions for the reactive_socket and reactive_callback types from the LiveViewCache module to the ReactiveCache struct module. This is technically a breaking change if any callers are using these for typespecs or something since the import paths will change.

The new 2-arity version of the reactive_callback will receive the key from the @reactive_cache config as its second argument, so this can be used to pattern match in the function head for common sets of assigns.

I also finally documented the different keys in the @reactive_cache module attribute, so there is a more complete explanation of how they work instead of only having a couple non-exhaustive code examples that don’t really communicate what the library actually does.

Where Next?

Trending in News & Updates Top

bartblast
After building Hologram and sharing updates across various places, I’ve realized there’s a lot happening that doesn’t always make it to t...
New
bartblast
I’ll be using this thread to share Hologram patch release announcements. Minor releases will continue to get dedicated threads with blog ...
New
jvoegele
A little over 18 months ago I posted the original announcement for Bond — an early cut of a Design by Contract library for Elixir. The t...
New
kip
I’m a bit excited to announce that Localize and friends are now at release 1.0. Even though it’s a 1.0 release, it stands on 8 years of w...
New
GenericJam
Mob 0.7.14 has been released. Added Magnetometer / compass support in Mob.Motion. Request :magnetometer in the sensor list and the {:m...
New
shahryarjb
:rocket: After 7–8 months, the new version of Mishka Chelekom is finally here! :tada: :sparkles: 53K+ downloads :puzzle_piece: 35 new h...
New
nseaSeb
Just published search_ash 0.5.0 (with search_core 0.4.0) on Hex. What’s new: synonyms You can now declare a synonym dictionary per lang...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
webofbits
Squid Mesh is an open source workflow automation runtime for Elixir applications. It is aimed at Phoenix and OTP apps that want to defin...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
kip
In 2021 I started a new library called Tempo with the objective of modelling time as a set of intervals - not as instants. In 2022 I gave...
New

We're in Beta

About us Mission Statement