Sample State
Closed this issue · 5 comments
xnanodax commented
Sample State
- State shape is flat!
- State's keys are camelCased
- All keys within the values in the state are accessible in the schema (Ex: if you create a
img_url
key in the state, make sure your database also has a column that contains animg_url
) - Correctly formatted
- Sample state is rendered with 3 back ticks before and after. This will display the state as a code block instead of a giant line of text
- Top level slices
-
entities
-
session
-
errors
(here or inui
) -
ui
(if needed)
-
- Should NOT have nested slices, aka
comments
inside ofposts
- Some info from other tables is ok, for instance:
- the author username and imageurl for a post. basically any info that the user can't change
- like count and a boolean on whether the user likes the post instead of a likes slice
- Some info from other tables is ok, for instance:
Comments:
xnanodax commented
Initial Proposal for this page has been reviewed. Please add the sample state!
cscov commented
first draft is ready for review
cscov commented
updated after our chat yesterday
xnanodax commented
cscov commented
updated, thanks!