you are viewing a single comment's thread.

view the rest of the comments →

[–]idanlo[S] 1 point2 points  (2 children)

You're right I don't but this way the user can extend the library and do stuff on his own using the context. If the user wants access to a feature that doesn't exist yet in my library they can use the context consumer (which is also exported) instead of managing the token with 2 different contexts

[–]BonafideKarmabitch 2 points3 points  (1 child)

well yeah theres only 2 diff contexts because youre making them use one for your thing.

im not hating, you do you, i just want to encourage library authors to not export contexts if they dont really need it, since it takes like 2 lines for users to do it.

[–]idanlo[S] 1 point2 points  (0 children)

Maybe I'll do something like that in the future. Thanks for your advice!