Skip to content

Commit 187a7d4

Browse files
committed
MD fixes for notes
1 parent 5139b38 commit 187a7d4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

guides/drafts/incremental-adoption-guide.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ export default class MyStore extends Store {
2828

2929
Notice we still want to import the `Store` class from `ember-data/store` package. You might have a lint rule that says don't do it. You can disable it for this import. The reason we want to import it from `ember-data/store` is because we want to use EmberData models, serializers, adapters, etc. while alongside we want to start utilizing new APIs.
3030

31-
>> Note: You can also use `@ember-data/store` package, but you will need to configure a lot more to make things work to use old APIs. We recommend using `ember-data/store` package to avoid confusion.
32-
>> Note: Because we are extending `ember-data/store`, it is still v1 addon, so things might not work for you if you are using typescript. We recommend to have `store.js` file for now.
31+
> Note: You can also use `@ember-data/store` package, but you will need to configure a lot more to make things work to use old APIs. We recommend using `ember-data/store` package to avoid confusion.
32+
33+
> Note: Because we are extending `ember-data/store`, it is still v1 addon, so things might not work for you if you are using typescript. We recommend to have `store.js` file for now.
3334
3435
## Step 3: Add `RequestManager` service to your application
3536

3637
Now let's create our very own `RequestManager` service. It is a service that is responsible for sending requests to the server. It is a composable class, which means you can add your own request handlers to it.
37-
38+
3839
First you need to install [`@ember-data/request`](https://github.com/emberjs/data/tree/main/packages/request) and [`@ember-data/legacy-compat`](https://github.com/emberjs/data/tree/main/packages/legacy-compat) packages. First contains the `RequestManager` service and a few request handlers, second has `LegacyNetworkHandler` that gonna handle all old-style `this.store.*` calls.
3940

4041
Here is how your own `RequestManager` service may look like:
@@ -72,7 +73,7 @@ Let's go over the code above:
7273

7374
3. Lastly `Fetch`. It is a handler that sends requests to the server using the `fetch` API. It expects responses to be JSON and when in use it should be the last handler you put in the chain. After finishing each request it will convert the response into json and pass it back to the handlers chain in reverse order as the request context's response. So `TestHandler` will receive `response` property first, and so on if we would have any.
7475

75-
>> NOTE: Your `RequestManager` service should be exactly `app/services/request-manager.[js|ts]` file. It is a convention that Ember uses to find the service.
76+
> NOTE: Your `RequestManager` service should be exactly `app/services/request-manager.[js|ts]` file. It is a convention that Ember uses to find the service.
7677
7778
You can read more about request manager in the [request manager guide](../requests/index.md).
7879

0 commit comments

Comments
 (0)