blitzjs.com icon indicating copy to clipboard operation
blitzjs.com copied to clipboard

Following the blitz tutorial at this step the code is different

Open kensan73 opened this issue 3 years ago • 2 comments

At this step it says to delete this line

image

but I think at this step it should look like

image

kensan73 avatar Sep 01 '22 12:09 kensan73

I believe that the tutorial code is correct because our generator creates the name property. Here's the source: https://github.com/blitz-js/blitz/blob/main/packages/generator/templates/mutations/update__ModelName__.ts#L7

beerose avatar Sep 15 '22 15:09 beerose

@beerose I didn't understand this one, could you clarify, please? As you said, the generator creates with name (but this is expected) the tutorial has a step before that changes the name to text so this is expected and when it reaches this the text is there and makes sense.

I think this issue should be closed.

estevanjantsk avatar Oct 05 '22 15:10 estevanjantsk

Yes, you're right. Sorry for the confusion. Closing the issue

beerose avatar Oct 17 '22 06:10 beerose