-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: otter sdk training - how to use the otter sdk #2493
Conversation
07f2aaf
to
fa63274
Compare
☁️ Nx Cloud ReportCI is running/has finished running commands for commit f6b4b49. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.ts
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/solution/app.component.ts
Outdated
Show resolved
Hide resolved
const localStorageStates: Record<string, Serializer<any>>[] = [/* Store to register in local storage */]; | ||
const storageSync = new StorageSync({ | ||
keys: localStorageStates, rehydrate: true | ||
}); | ||
|
||
const rootReducers = {}; | ||
|
||
const metaReducers = [storageSync.localStorageSync()]; | ||
const runtimeChecks: Partial<RuntimeChecks> = { | ||
strictActionImmutability: false, | ||
strictActionSerializability: false, | ||
strictActionTypeUniqueness: !environment.production, | ||
strictActionWithinNgZone: !environment.production, | ||
strictStateImmutability: !environment.production, | ||
strictStateSerializability: false | ||
}; |
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.
we should remove all the @ngrx
stuff, it's adding a lot of noise and is not the relevant for the sdk training
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.
I cleaned up the app.config.ts
file, but I left the @ngrx
dependencies in the package.json
files since some are peer dependencies for other packages. What do you think?
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.
we are already installing using --legacy-peer-deps
so I don't think the warnings will matter
there is no reason for @ngrx
to be used in the training so we can safely remove the dependency
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.ts
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/solution/app.component.ts
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/instructions.md
Outdated
Show resolved
Hide resolved
fa63274
to
97cfa4c
Compare
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.html
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.html
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/solution/app.config.ts
Outdated
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.ts
Outdated
Show resolved
Hide resolved
97cfa4c
to
b46170a
Compare
b46170a
to
d544e8d
Compare
d544e8d
to
95a2a2d
Compare
886642d
to
42b6554
Compare
42b6554
to
f6b4b49
Compare
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/exercise/app.component.ts
Show resolved
Hide resolved
apps/showcase/src/assets/trainings/sdk/steps/typescript-sdk/solution/app.component.ts
Show resolved
Hide resolved
/** Title of the application */ | ||
public title = 'tutorial-app'; | ||
|
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.
/** Title of the application */ | |
public title = 'tutorial-app'; |
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.
The title
variable is currently being used in the test file app.component.spec.ts
, we can update this test file eventually or remove them for the case of this training (but in a separate PR)
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.
we are not running the test and if we are it will fail :)
but yes we can do it in another PR
/** Title of the application */ | ||
public title = 'tutorial-app'; | ||
|
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.
/** Title of the application */ | |
public title = 'tutorial-app'; |
Proposed change
How to use the Otter SDK step
The goal is for the user to create a fetch client and use the pet API to display the results in the UI
Related issues
- No issue associated -