nosco / hx

A simple, easy to use library for React development in ClojureScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interceptors

lilactown opened this issue · comments

Interceptors

f8b755e adds the API for registering interceptors. The default is currently to compile top-level hiccup, and to transform $ to calls to (compile-hiccup ...). Several people have commented on the use of $ so I'm considering switching that off by default.

There are currently two outstanding issues with the interceptor API:

  1. How should lib consumers register interceptors?

Interceptors must be registered via CLJ code at macroexpansion time, but apps that use this library are primarily CLJS.

  1. Modifying the interceptor stack as it's processed