Skip to content

Commit d0d62d7

Browse files
committed
add a minor formatting to readme comment
1 parent 29ddbc2 commit d0d62d7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,10 @@ function StoryPage(props) {
227227

228228
exports.StoryPage = StoryPage;
229229
```
230-
doNotChangeUrl
231-
When the next story is focussed on, the url and title of the page is set to the next story loaded by the Infinite Story Base. If this is not required, it can be disabled by setting the prop doNotChangeUrl={true}.
232-
A valid use case for this: If the after the story we are showing the snapshots of the next stories but not the actual stories. Please make sure that GA is not being fired for the next story if doNotChangeUrl is set to true.
230+
#### doNotChangeUrl
231+
When the next story is focussed on, the url and title of the page will be set to the next story loaded by the Infinite Story Base. If this is not required, it can be disabled by setting the prop doNotChangeUrl={true}.
232+
A valid use case for this: If the after the story, we are showing the snapshots of the next few stories, not the actual stories we dont want to change the url to the current story shown in the snapshot.
233+
While disabling the url updating, Please make sure that GA is not being fired for the next story if doNotChangeUrl is set to true.
233234
An Example:
234235
```javascript
235236
<InfiniteStoryBase {...props}

0 commit comments

Comments
 (0)