GrammAcc

GrammAcc

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? Top

Trending in News & Updates Top

sorenone
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
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
sorenone
This release unifies configuration for queues, repos, and services, swaps opaque timing integers for readable durations, and backports pe...
New
pcharbon
:heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::heart::hea...
New
jvoegele
Bond brings Design by Contract to Elixir: preconditions, postconditions and invariants as executable specifications, checked at runtime a...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
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
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews