Skip to content
Discussion options

You must be logged in to vote

Looked into it, and the code is quite complex to reason about.

Key observations:

  • You were destructuring the result of useArkDatePickerContext. In Solid.js, it returns a function, not an object.
  • You used both RootProvider and Root. Please use Root for most cases.
  • There's indeed a bug in selectToday. Replaced it with context().setValue([parseDate(new Date())]) for now

Cleaned it up a bit here:
https://stackblitz.com/edit/solidjs-templates-zn7wrf5c?file=src%2Findex.tsx,src%2FDatePicker.tsx,package.json

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kada49
Comment options

@segunadebayo
Comment options

Answer selected by segunadebayo
@kada49
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants