oliyh / re-graph

A graphql client for clojurescript and clojure
460 stars 39 forks source link

Is is supposed to be working on react native? #83

Closed mununki closed 3 years ago

mununki commented 3 years ago

Hi! I'm very pleased to use the re-graph with re-frame for my web project. But I'm wondering where it is working on the react-native. Actually, I've setup my react native project with Krell, re-frame, re-graph. But It seems not working. I've done same to my web project. But, nothing happened whenever I tried to dispatch the query to my api.

Is there any additional deps or configuration to make it working on react native? Should I exclude re-graph.hato for react native setup?

oliyh commented 3 years ago

Hello,

It sounds possibly like the re-frame handlers are not registering. Are you not getting any error messages? Are you using re-frame and if so, what version - or are you only pulling it in via transient dependency on re-graph?

You can exclude hato but it should be ignored by your build anyway.

mununki commented 3 years ago

My mistake! The problem was caused by the android emulator on my apple silicon machine. I don't know why making a http request was not made from the android emulator exactly, but there was no error message and no clue. But it works perfectly on iphone simulator. This is so silly issue I made. I'll close it now. Thank you!

oliyh commented 3 years ago

Glad it works :)