Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spec assertion failed, perhaps because of trim-v interceptor #96

Open
joshcho opened this issue Jun 2, 2023 · 1 comment
Open

Spec assertion failed, perhaps because of trim-v interceptor #96

joshcho opened this issue Jun 2, 2023 · 1 comment

Comments

@joshcho
Copy link

joshcho commented Jun 2, 2023

I am setting up as follows:

(rf/dispatch [::re-graph/init
                {:http {:url "http://localhost:8888/api"}}])

Getting this error

Uncaught Error: Spec assertion failed
-- Spec failed --------------------

  [{:http {:url "http://localhost:8888/api"}}]

should satisfy

  map?

I think this may be because I register rf/trim-v as a global register using rf/reg-global-interceptor. How would I resolve this situation?

@oliyh
Copy link
Owner

oliyh commented Jun 2, 2023

Hi,

I think your assumption is a good one. I'm not really sure how libraries are mean to cope with that, unless the untrimmed value is still available in the effect (which I think it is). Just to confirm, if you remove your global trim-v does it work?

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants