ferdinand-beyer / refx Goto Github PK
View Code? Open in Web Editor NEWre-frame without Reagent
License: MIT License
re-frame without Reagent
License: MIT License
I was trying to convert a hello-world project from re-frame to the latest released version of refx, and got the following error.
My subs.cljs file:
(ns todo.subs
(:require
[refx.alpha :as rf]))
(rf/reg-sub
::name
(fn [db _]
(:name db)))
shadow-cljs output:
Resource: refx/subs.cljc:99:19
Use of undeclared Var refx.subs/update-vals
Although the library is in alpha state, I typically use shadow-cljs by itself, installed from npm. But it should be easy to deploy to clojars with a minimal project.clj
file and using lein deploy clojars
as described in the Shadow CLJS User Guide.
If you need help, I probably have time to make a PR tomorrow.
Hello. Thank you for making this library. I realized that the following does not work
(rf/reg-sub
::example
:-> ::example)
Instead we have to write
(rf/reg-sub
::example
(fn [db _]
(::example db)))
Would it be possible to add this? I may be able send a patch.
Hello, thanks for your time on converting reframe to this library! I've really liked using re-frame w/ helix. I was looking at https://github.com/day8/re-frame/blob/master/docs/FAQs/UseASubscriptionInAnEventHandler.md b/c I would like to have access to a subscription's value within a refx event. Would you be open to having something similar in this library? Not entirely sure how it would look yet, need to do a bit more reading, but wanted to create the issue. Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.