Coder Social home page Coder Social logo

Comments (6)

denistakeda avatar denistakeda commented on June 30, 2024 2

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:

  1. Use predefined integer ids instead
  2. Use the data storage for singleton values

Thank you for the reporting and provided repo!

from re-posh.

denistakeda avatar denistakeda commented on June 30, 2024 1

Hello @jleonard-r7 . Thank you for reporting this. I'll have a look

from re-posh.

jleonard-r7 avatar jleonard-r7 commented on June 30, 2024

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.

jleonard-r7 avatar jleonard-r7 commented on June 30, 2024

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.

denistakeda avatar denistakeda commented on June 30, 2024

Thank you @jleonard-r7 . Will check this out

from re-posh.

jleonard-r7 avatar jleonard-r7 commented on June 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.