kit icon indicating copy to clipboard operation
kit copied to clipboard

[Docs idea] Best Practices - You May Not Need

Open swyxio opened this issue 2 years ago • 0 comments

Describe the problem

there are some things that people tend to forget perhaps we could document in one place as a sort of checklist for people who may carry over assumptions from other frameworks

e.g. i am very used to importing axios or node-fetch when getting data. just realized that i can just use SK's inbuilt fetch and save me a lot of trouble.

Describe the proposed solution

a "You May Not Need" document with suggestions, e.g.

  • You May Not Need node-fetch or axios, use +page.js and SK's provided fetch
  • You May Not Need error handling code if you can use _error.js or error()

etc

Alternatives considered

some kind of linter?

Importance

nice to have

Additional Information

just proposing, happy to work on it but my list is pretty short right now, will come back to add when i think of anything

swyxio avatar Nov 28 '22 05:11 swyxio