-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from inokawa/ssr-count
Add initialItemCount prop for SSR
- Loading branch information
Showing
6 changed files
with
155 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`SSR should render 10 items with renderToStaticMarkup 1`] = `"<div style="overflow:hidden auto;contain:strict;width:100%;height:100%;padding:0;margin:0"><div style="position:relative;visibility:hidden;width:100%;height:40000px;pointer-events:auto"><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:0;visibility:hidden"><div>0</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:40px;visibility:hidden"><div>1</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:80px;visibility:hidden"><div>2</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:120px;visibility:hidden"><div>3</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:160px;visibility:hidden"><div>4</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:200px;visibility:hidden"><div>5</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:240px;visibility:hidden"><div>6</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:280px;visibility:hidden"><div>7</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:320px;visibility:hidden"><div>8</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:360px;visibility:hidden"><div>9</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:400px;visibility:hidden"><div>10</div></div></div></div>"`; | ||
exports[`SSR should render items with renderToStaticMarkup and horizontal 1`] = `"<div id="list-id" style="overflow:auto hidden;contain:strict;width:100%;height:100%;padding:0;margin:0"><div style="position:relative;visibility:hidden;width:40000px;height:100%;pointer-events:auto"><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:0;visibility:hidden;display:flex"><div>0</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:40px;visibility:hidden;display:flex"><div>1</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:80px;visibility:hidden;display:flex"><div>2</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:120px;visibility:hidden;display:flex"><div>3</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:160px;visibility:hidden;display:flex"><div>4</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:200px;visibility:hidden;display:flex"><div>5</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:240px;visibility:hidden;display:flex"><div>6</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:280px;visibility:hidden;display:flex"><div>7</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:320px;visibility:hidden;display:flex"><div>8</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:360px;visibility:hidden;display:flex"><div>9</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:400px;visibility:hidden;display:flex"><div>10</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:440px;visibility:hidden;display:flex"><div>11</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:480px;visibility:hidden;display:flex"><div>12</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:520px;visibility:hidden;display:flex"><div>13</div></div></div></div>"`; | ||
|
||
exports[`SSR should render 10 items with renderToString 1`] = `"<div style="overflow:hidden auto;contain:strict;width:100%;height:100%;padding:0;margin:0"><div style="position:relative;visibility:hidden;width:100%;height:40000px;pointer-events:auto"><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:0;visibility:hidden"><div>0</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:40px;visibility:hidden"><div>1</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:80px;visibility:hidden"><div>2</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:120px;visibility:hidden"><div>3</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:160px;visibility:hidden"><div>4</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:200px;visibility:hidden"><div>5</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:240px;visibility:hidden"><div>6</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:280px;visibility:hidden"><div>7</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:320px;visibility:hidden"><div>8</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:360px;visibility:hidden"><div>9</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:400px;visibility:hidden"><div>10</div></div></div></div>"`; | ||
exports[`SSR should render items with renderToStaticMarkup and vertical 1`] = `"<div id="list-id" style="overflow:hidden auto;contain:strict;width:100%;height:100%;padding:0;margin:0"><div style="position:relative;visibility:hidden;width:100%;height:40000px;pointer-events:auto"><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:0;visibility:hidden"><div>0</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:40px;visibility:hidden"><div>1</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:80px;visibility:hidden"><div>2</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:120px;visibility:hidden"><div>3</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:160px;visibility:hidden"><div>4</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:200px;visibility:hidden"><div>5</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:240px;visibility:hidden"><div>6</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:280px;visibility:hidden"><div>7</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:320px;visibility:hidden"><div>8</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:360px;visibility:hidden"><div>9</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:400px;visibility:hidden"><div>10</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:440px;visibility:hidden"><div>11</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:480px;visibility:hidden"><div>12</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:520px;visibility:hidden"><div>13</div></div></div></div>"`; | ||
|
||
exports[`SSR should render items with renderToString and horizontal 1`] = `"<div id="list-id" style="overflow:auto hidden;contain:strict;width:100%;height:100%;padding:0;margin:0"><div style="position:relative;visibility:hidden;width:40000px;height:100%;pointer-events:auto"><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:0;visibility:hidden;display:flex"><div>0</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:40px;visibility:hidden;display:flex"><div>1</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:80px;visibility:hidden;display:flex"><div>2</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:120px;visibility:hidden;display:flex"><div>3</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:160px;visibility:hidden;display:flex"><div>4</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:200px;visibility:hidden;display:flex"><div>5</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:240px;visibility:hidden;display:flex"><div>6</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:280px;visibility:hidden;display:flex"><div>7</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:320px;visibility:hidden;display:flex"><div>8</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:360px;visibility:hidden;display:flex"><div>9</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:400px;visibility:hidden;display:flex"><div>10</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:440px;visibility:hidden;display:flex"><div>11</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:480px;visibility:hidden;display:flex"><div>12</div></div><div style="margin:0;padding:0;position:absolute;height:100%;top:0;left:520px;visibility:hidden;display:flex"><div>13</div></div></div></div>"`; | ||
|
||
exports[`SSR should render items with renderToString and vertical 1`] = `"<div id="list-id" style="overflow:hidden auto;contain:strict;width:100%;height:100%;padding:0;margin:0"><div style="position:relative;visibility:hidden;width:100%;height:40000px;pointer-events:auto"><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:0;visibility:hidden"><div>0</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:40px;visibility:hidden"><div>1</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:80px;visibility:hidden"><div>2</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:120px;visibility:hidden"><div>3</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:160px;visibility:hidden"><div>4</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:200px;visibility:hidden"><div>5</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:240px;visibility:hidden"><div>6</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:280px;visibility:hidden"><div>7</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:320px;visibility:hidden"><div>8</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:360px;visibility:hidden"><div>9</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:400px;visibility:hidden"><div>10</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:440px;visibility:hidden"><div>11</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:480px;visibility:hidden"><div>12</div></div><div style="margin:0;padding:0;position:absolute;width:100%;left:0;top:520px;visibility:hidden"><div>13</div></div></div></div>"`; |
Oops, something went wrong.