Comments (6)
Hello @jleonard-r7 . I've checked the example and indeed, it works not as expected. So-far posh
library is unable to watch the entities based on keyword and :db/ident
rule. I'm going to support that but so far you have two workarounds:
- Use predefined integer ids instead
- Use the data storage for singleton values
Thank you for the reporting and provided repo!
from re-posh.
Hello @jleonard-r7 . Thank you for reporting this. I'll have a look
from re-posh.
note also that i am using a listener to write the data to local storage:
(d/listen! connection :persistence
(fn [tx-report]
(when-let [db (:db-after tx-report)]
(rf/dispatch [:state.local-storage/set-item storage-key (db->string db)]))))
and local storage itself contains the correct value.
from re-posh.
Here is a minimal repro:
jleonard-r7@ec9351b
Just cd into that example and run:
clj -A:repl
and then in the browser that appears, click the "Click Me" button.
from re-posh.
Thank you @jleonard-r7 . Will check this out
from re-posh.
Would you mind briefly mentioning the planned fix for this and whether it would also address #47 ?
I'm beginning to hit these caching issues all across my codebase to the point that re-posh is not really usable in it current state (and that's after introducing a top-level :root object as a workaround to this, #41, the first caching issue I discovered).
If you could briefly tell me the planned fix, I could carry it out myself. Otherwise, I will unfortunately probably have to refrain from using re-posh for the time being.
Many thanks in advance for any guidance you can offer.
from re-posh.
Related Issues (20)
- a reg-event-ds handler is called with nil as value of parameter ds
- Support combined pull and query in a subscription HOT 6
- Todo Example does not to work HOT 1
- Trouble creating a re-posh/datascript DB via an AJAX call HOT 4
- Resetting the db inside the conn doesn't trigger an update HOT 2
- Feature Request : Datalog Rules HOT 1
- Wording clarification HOT 2
- How do you handle pull-many? HOT 13
- Database Swap not triggering repaint of app HOT 1
- Not seeing retracted datoms HOT 2
- Don't see updates of a datom which properties are edited HOT 6
- Query for attribute :where tuple value always fails HOT 4
- Datascript version HOT 4
- When reg-pull-sub use the nested map , how can reactive update the relation data? HOT 4
- How to idiomatically get value from the ds in an event handler? HOT 1
- unquote does not work in reg-query-sub quote HOT 3
- enrich should be defined supporting both ds and db
- is missing? supported
- another caching bug HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from re-posh.