-
-
Notifications
You must be signed in to change notification settings - Fork 56
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”, 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
[Feature] Improve SuperDebug layout, add label and promise options #38
Conversation
Wow, thanks a lot, will release this very soon! |
@lnfel if you'd like to add documentation for it, can you add it to the Wiki instead of the readme? I'm about to move the whole documentation to a dedicated site. Here's the section for SuperDebug: https://github.com/ciscoheat/sveltekit-superforms/wiki/API-reference#superdebug |
*/ | ||
let promiseProduct = () => {} | ||
const someObject = { | ||
full_name: "Hubert Blaine Wolfeschlegelsteinhausenbergerdorff Sr." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good old Hubert! 😆
@ciscoheat I cloned the wiki and made the changes but I can't push due to permission. Here is the relevant changes that I made in the fork. https://github.com/lnfel/sveltekit-superforms/wiki/API-reference |
Sorry, I didn't know about wiki permissions. I'll merge the changes and will add you to it! |
I've opened the wiki now for editing, can you copy your changes over to it? I have the same permission problem on your site. :) Thanks for your help! |
The doc is now updated! |
Thank you so much! The 0.6.0 update will be released today or tomorrow, including your nice changes, and being able to use |
What's changed
data
evaluates totrue
, now there is no checking and will spit outundefined
if data isundefined
. In JavaScript knowing whether your data isundefined
is crucial.data
isundefined
or not yet ready, i.e. in cases where loading data async and it takes a while to load.label
prop, useful when using multiple instances of SuperDebug on a page.promise
prop, useful when debugging data coming from afetch
or anypromise
functions that may take a while to load. It uses svelte'sawait
block to display a message and let users know the data is still loading.super-debug
page route to document all possible use cases of SuperDebug with the proposed changes and see it in action.I would add documentation on readme if this looks good to you @ciscoheat .