tonsky / tonsky/datascript

js entity api returns clj object

Open
#267 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Clojure
Stars
5.8k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

I have "a test case" that reproduces the problem over here:
https://runkit.com/pedroteixeira/5b3d293e2362ea0012159119

We would expect it to return the value converted to native js, right?

Any workarounds for this?
Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked RunKit reproduction and inspect the JavaScript entity API behavior shown there. Trace how the entity value is returned and compare it with the expected native JavaScript value. Done means the reproduction returns a native JavaScript value rather than a Clojure object; add or update a regression test if the project’s existing test structure identifies a suitable location.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, javascript
Domain
api, database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.