Skip to content

why the change from api.rootProps to api.getRootProps? #1645

Answered by anubra266
samadadi asked this question in Q&A
Discussion options

You must be logged in to vote

@samadadi

  1. This improves performance, cause attributes gets lazy loaded
  2. Doing this all at once, means if we ever plan to expose any props in those methods in the future, it'd no longer be a breaking change

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@segunadebayo
Comment options

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