8000 camelCase prop values invalid? · Issue #77 · blacksmithgu/datacore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

camelCase prop values invalid? #77

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&rdqu 8000 o;, 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

Open
zanodor opened this issue Nov 13, 2024 · 2 comments
Open

camelCase prop values invalid? #77

zanodor opened this issue Nov 13, 2024 · 2 comments

Comments

@zanodor
Copy link
zanodor commented Nov 13, 2024

Was fooling around with datacorejsx (as a user, not a dev) and found that snake_case date property values were handled fine, but camelCase came up undefined in the console.

@beesinblenders
Copy link

I noticed too that I could only access my properties when querying them in small case, even though they were in camelCase in the actual note.

Then I realized that was because I was accessing them like this: note.$frontmatter?.key?.value, instead of the expected syntax: note.value("key"). It is case-insensitive, you can do either note.value("tagName") or note.value("tagname").

@zanodor
Copy link
Author
zanodor commented Feb 13, 2025

the expected syntax: note.value("key")

Yes, both page.value("key") and note.value("key") work.

The only place replacing these didn't work was where I had functions that handle dynamic property access. So I wasn't able to change these without breaking functionality:

  • any instance of $frontmatter?.[property]
  • any instance of $frontmatter?.['property']
534C

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
0