Skip to content

Commit a158c4e

Browse files
authored
Merge pull request #193 from FrameMuse/192-if-use-lazy-load-in-component-modalclosebycomponent-didnt-work
192 if use lazy load in component modalclosebycomponent didnt work
2 parents 4c9fc32 + 010f113 commit a158c4e

6 files changed

Lines changed: 293 additions & 264 deletions

File tree

coverage/clover.xml

Lines changed: 101 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<coverage generated="1685218719782" clover="3.2.0">
3-
<project timestamp="1685218719782" name="All files">
4-
<metrics statements="171" coveredstatements="162" conditionals="71" coveredconditionals="58" methods="60" coveredmethods="56" elements="302" coveredelements="276" complexity="0" loc="171" ncloc="171" packages="1" files="10" classes="10"/>
2+
<coverage generated="1692774547856" clover="3.2.0">
3+
<project timestamp="1692774547857" name="All files">
4+
<metrics statements="173" coveredstatements="164" conditionals="71" coveredconditionals="58" methods="61" coveredmethods="57" elements="305" coveredelements="279" complexity="0" loc="173" ncloc="173" packages="1" files="10" classes="10"/>
55
<file name="Deffered.ts" path="/home/kotto/github/react-modal-global/src/Deffered.ts">
66
<metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
7-
<line num="25" count="76" type="stmt"/>
8-
<line num="26" count="76" type="stmt"/>
9-
<line num="27" count="76" type="stmt"/>
7+
<line num="25" count="77" type="stmt"/>
8+
<line num="26" count="77" type="stmt"/>
9+
<line num="27" count="77" type="stmt"/>
1010
</file>
1111
<file name="ModalContainer.tsx" path="/home/kotto/github/react-modal-global/src/ModalContainer.tsx">
1212
<metrics statements="11" coveredstatements="11" conditionals="8" coveredconditionals="8" methods="4" coveredmethods="4"/>
@@ -23,76 +23,78 @@
2323
<line num="67" count="37" type="stmt"/>
2424
</file>
2525
<file name="ModalController.ts" path="/home/kotto/github/react-modal-global/src/ModalController.ts">
26-
<metrics statements="69" coveredstatements="62" conditionals="30" coveredconditionals="22" methods="27" coveredmethods="25"/>
27-
<line num="38" count="52" type="stmt"/>
28-
<line num="39" count="52" type="stmt"/>
29-
<line num="42" count="137" type="stmt"/>
30-
<line num="45" count="52" type="stmt"/>
31-
<line num="47" count="53" type="stmt"/>
32-
<line num="50" count="384" type="stmt"/>
33-
<line num="58" count="15" type="cond" truecount="1" falsecount="1"/>
34-
<line num="60" count="15" type="stmt"/>
35-
<line num="61" count="15" type="stmt"/>
36-
<line num="67" count="70" type="cond" truecount="2" falsecount="0"/>
37-
<line num="69" count="38" type="stmt"/>
38-
<line num="70" count="38" type="stmt"/>
39-
<line num="99" count="74" type="stmt"/>
40-
<line num="102" count="74" type="stmt"/>
41-
<line num="106" count="74" type="cond" truecount="2" falsecount="0"/>
26+
<metrics statements="71" coveredstatements="64" conditionals="30" coveredconditionals="22" methods="28" coveredmethods="26"/>
27+
<line num="38" count="54" type="stmt"/>
28+
<line num="39" count="54" type="stmt"/>
29+
<line num="42" count="140" type="stmt"/>
30+
<line num="45" count="54" type="stmt"/>
31+
<line num="47" count="55" type="stmt"/>
32+
<line num="50" count="394" type="stmt"/>
33+
<line num="58" count="16" type="cond" truecount="1" falsecount="1"/>
34+
<line num="60" count="16" type="stmt"/>
35+
<line num="61" count="16" type="stmt"/>
36+
<line num="67" count="71" type="cond" truecount="2" falsecount="0"/>
37+
<line num="69" count="39" type="stmt"/>
38+
<line num="70" count="39" type="stmt"/>
39+
<line num="99" count="75" type="stmt"/>
40+
<line num="102" count="75" type="stmt"/>
41+
<line num="106" count="75" type="cond" truecount="2" falsecount="0"/>
4242
<line num="107" count="36" type="stmt"/>
4343
<line num="108" count="36" type="cond" truecount="2" falsecount="0"/>
4444
<line num="109" count="4" type="stmt"/>
45-
<line num="113" count="70" type="cond" truecount="4" falsecount="0"/>
45+
<line num="113" count="71" type="cond" truecount="4" falsecount="0"/>
4646
<line num="114" count="3" type="stmt"/>
47-
<line num="116" count="70" type="stmt"/>
48-
<line num="117" count="70" type="stmt"/>
49-
<line num="119" count="70" type="stmt"/>
50-
<line num="121" count="70" type="stmt"/>
51-
<line num="127" count="4" type="stmt"/>
52-
<line num="129" count="4" type="stmt"/>
47+
<line num="116" count="71" type="stmt"/>
48+
<line num="117" count="71" type="stmt"/>
49+
<line num="119" count="71" type="stmt"/>
50+
<line num="121" count="71" type="stmt"/>
51+
<line num="127" count="5" type="stmt"/>
52+
<line num="129" count="5" type="stmt"/>
5353
<line num="138" count="6" type="stmt"/>
5454
<line num="139" count="6" type="cond" truecount="2" falsecount="0"/>
5555
<line num="140" count="5" type="stmt"/>
5656
<line num="143" count="6" type="stmt"/>
5757
<line num="150" count="4" type="stmt"/>
5858
<line num="152" count="4" type="stmt"/>
59-
<line num="159" count="29" type="cond" truecount="1" falsecount="1"/>
60-
<line num="160" count="29" type="cond" truecount="1" falsecount="1"/>
61-
<line num="162" count="29" type="cond" truecount="2" falsecount="0"/>
62-
<line num="163" count="15" type="stmt"/>
63-
<line num="165" count="15" type="stmt"/>
59+
<line num="159" count="30" type="cond" truecount="1" falsecount="1"/>
60+
<line num="160" count="30" type="cond" truecount="1" falsecount="1"/>
61+
<line num="162" count="30" type="cond" truecount="2" falsecount="0"/>
62+
<line num="163" count="16" type="stmt"/>
63+
<line num="165" count="16" type="stmt"/>
6464
<line num="168" count="14" type="stmt"/>
6565
<line num="169" count="14" type="stmt"/>
6666
<line num="176" count="5" type="stmt"/>
6767
<line num="177" count="2" type="stmt"/>
68-
<line num="184" count="2" type="stmt"/>
69-
<line num="185" count="9" type="cond" truecount="2" falsecount="0"/>
68+
<line num="184" count="3" type="stmt"/>
69+
<line num="185" count="10" type="cond" truecount="2" falsecount="0"/>
7070
<line num="186" count="1" type="stmt"/>
71-
<line num="189" count="8" type="cond" truecount="1" falsecount="1"/>
71+
<line num="189" count="9" type="cond" truecount="1" falsecount="1"/>
7272
<line num="190" count="0" type="cond" truecount="0" falsecount="2"/>
7373
<line num="191" count="0" type="stmt"/>
74-
<line num="195" count="8" type="stmt"/>
75-
<line num="197" count="8" type="stmt"/>
76-
<line num="204" count="4" type="stmt"/>
77-
<line num="209" count="8" type="stmt"/>
78-
<line num="211" count="8" type="cond" truecount="1" falsecount="1"/>
79-
<line num="212" count="0" type="stmt"/>
80-
<line num="215" count="8" type="cond" truecount="1" falsecount="1"/>
81-
<line num="216" count="0" type="stmt"/>
82-
<line num="219" count="8" type="stmt"/>
83-
<line num="233" count="0" type="stmt"/>
84-
<line num="235" count="0" type="stmt"/>
85-
<line num="236" count="0" type="stmt"/>
86-
<line num="248" count="117" type="stmt"/>
87-
<line num="249" count="117" type="stmt"/>
88-
<line num="250" count="117" type="stmt"/>
89-
<line num="252" count="117" type="stmt"/>
90-
<line num="253" count="65" type="stmt"/>
91-
<line num="254" count="65" type="stmt"/>
92-
<line num="255" count="65" type="stmt"/>
93-
<line num="259" count="299" type="stmt"/>
94-
<line num="262" count="52" type="stmt"/>
95-
<line num="264" count="137" type="stmt"/>
74+
<line num="195" count="9" type="stmt"/>
75+
<line num="197" count="9" type="stmt"/>
76+
<line num="201" count="1" type="stmt"/>
77+
<line num="203" count="1" type="stmt"/>
78+
<line num="210" count="4" type="stmt"/>
79+
<line num="215" count="10" type="stmt"/>
80+
<line num="217" count="10" type="cond" truecount="1" falsecount="1"/>
81+
<line num="218" count="0" type="stmt"/>
82+
<line num="221" count="10" type="cond" truecount="1" falsecount="1"/>
83+
<line num="222" count="0" type="stmt"/>
84+
<line num="225" count="10" type="stmt"/>
85+
<line num="239" count="0" type="stmt"/>
86+
<line num="241" count="0" type="stmt"/>
87+
<line num="242" count="0" type="stmt"/>
88+
<line num="254" count="119" type="stmt"/>
89+
<line num="255" count="119" type="stmt"/>
90+
<line num="256" count="119" type="stmt"/>
91+
<line num="258" count="119" type="stmt"/>
92+
<line num="259" count="65" type="stmt"/>
93+
<line num="260" count="65" type="stmt"/>
94+
<line num="261" count="65" type="stmt"/>
95+
<line num="265" count="299" type="stmt"/>
96+
<line num="268" count="54" type="stmt"/>
97+
<line num="270" count="140" type="stmt"/>
9698
</file>
9799
<file name="ModalPortal.tsx" path="/home/kotto/github/react-modal-global/src/ModalPortal.tsx">
98100
<metrics statements="16" coveredstatements="15" conditionals="6" coveredconditionals="5" methods="6" coveredmethods="5"/>
@@ -117,21 +119,21 @@
117119
<metrics statements="18" coveredstatements="17" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="4"/>
118120
<line num="25" count="4" type="stmt"/>
119121
<line num="32" count="4" type="stmt"/>
120-
<line num="75" count="76" type="stmt"/>
121-
<line num="76" count="76" type="stmt"/>
122-
<line num="78" count="76" type="stmt"/>
123-
<line num="79" count="76" type="stmt"/>
124-
<line num="81" count="76" type="stmt"/>
125-
<line num="83" count="76" type="stmt"/>
126-
<line num="84" count="76" type="stmt"/>
127-
<line num="86" count="76" type="stmt"/>
128-
<line num="99" count="76" type="stmt"/>
122+
<line num="75" count="77" type="stmt"/>
123+
<line num="76" count="77" type="stmt"/>
124+
<line num="78" count="77" type="stmt"/>
125+
<line num="79" count="77" type="stmt"/>
126+
<line num="81" count="77" type="stmt"/>
127+
<line num="83" count="77" type="stmt"/>
128+
<line num="84" count="77" type="stmt"/>
129+
<line num="86" count="77" type="stmt"/>
130+
<line num="99" count="77" type="stmt"/>
129131
<line num="100" count="15" type="stmt"/>
130132
<line num="101" count="15" type="stmt"/>
131133
<line num="103" count="15" type="stmt"/>
132134
<line num="115" count="2" type="stmt"/>
133-
<line num="128" count="74" type="stmt"/>
134-
<line num="130" count="74" type="stmt"/>
135+
<line num="128" count="75" type="stmt"/>
136+
<line num="130" count="75" type="stmt"/>
135137
<line num="131" count="0" type="stmt"/>
136138
</file>
137139
<file name="context.ts" path="/home/kotto/github/react-modal-global/src/context.ts">
@@ -160,26 +162,26 @@
160162
<line num="31" count="26" type="stmt"/>
161163
<line num="33" count="26" type="stmt"/>
162164
<line num="34" count="26" type="stmt"/>
163-
<line num="39" count="77" type="cond" truecount="1" falsecount="1"/>
164-
<line num="42" count="77" type="stmt"/>
165-
<line num="43" count="77" type="stmt"/>
166-
<line num="44" count="330" type="cond" truecount="4" falsecount="0"/>
167-
<line num="45" count="178" type="cond" truecount="2" falsecount="0"/>
165+
<line num="39" count="78" type="cond" truecount="1" falsecount="1"/>
166+
<line num="42" count="78" type="stmt"/>
167+
<line num="43" count="78" type="stmt"/>
168+
<line num="44" count="334" type="cond" truecount="4" falsecount="0"/>
169+
<line num="45" count="180" type="cond" truecount="2" falsecount="0"/>
168170
<line num="46" count="7" type="stmt"/>
169-
<line num="48" count="171" type="stmt"/>
170-
<line num="51" count="323" type="stmt"/>
171-
<line num="56" count="330" type="cond" truecount="2" falsecount="0"/>
172-
<line num="58" count="84" type="cond" truecount="4" falsecount="0"/>
171+
<line num="48" count="173" type="stmt"/>
172+
<line num="51" count="327" type="stmt"/>
173+
<line num="56" count="334" type="cond" truecount="2" falsecount="0"/>
174+
<line num="58" count="85" type="cond" truecount="4" falsecount="0"/>
173175
<line num="59" count="22" type="stmt"/>
174-
<line num="62" count="62" type="stmt"/>
175-
<line num="65" count="246" type="stmt"/>
176-
<line num="69" count="77" type="stmt"/>
177-
<line num="71" count="77" type="stmt"/>
178-
<line num="72" count="330" type="stmt"/>
179-
<line num="74" count="330" type="stmt"/>
180-
<line num="75" count="330" type="stmt"/>
181-
<line num="79" count="77" type="stmt"/>
182-
<line num="80" count="77" type="stmt"/>
176+
<line num="62" count="63" type="stmt"/>
177+
<line num="65" count="249" type="stmt"/>
178+
<line num="69" count="78" type="stmt"/>
179+
<line num="71" count="78" type="stmt"/>
180+
<line num="72" count="334" type="stmt"/>
181+
<line num="74" count="334" type="stmt"/>
182+
<line num="75" count="334" type="stmt"/>
183+
<line num="79" count="78" type="stmt"/>
184+
<line num="80" count="78" type="stmt"/>
183185
<line num="89" count="37" type="stmt"/>
184186
<line num="90" count="8" type="cond" truecount="3" falsecount="1"/>
185187
<line num="91" count="8" type="cond" truecount="2" falsecount="0"/>
@@ -188,17 +190,17 @@
188190
<line num="108" count="3" type="stmt"/>
189191
<line num="110" count="1" type="stmt"/>
190192
<line num="112" count="1" type="stmt"/>
191-
<line num="121" count="76" type="stmt"/>
192-
<line num="122" count="76" type="stmt"/>
193-
<line num="124" count="76" type="stmt"/>
194-
<line num="125" count="5681" type="stmt"/>
195-
<line num="127" count="5681" type="stmt"/>
196-
<line num="128" count="5681" type="stmt"/>
197-
<line num="131" count="76" type="stmt"/>
198-
<line num="132" count="76" type="stmt"/>
199-
<line num="133" count="76" type="stmt"/>
200-
<line num="134" count="76" type="stmt"/>
201-
<line num="136" count="76" type="stmt"/>
193+
<line num="121" count="77" type="stmt"/>
194+
<line num="122" count="77" type="stmt"/>
195+
<line num="124" count="77" type="stmt"/>
196+
<line num="125" count="5719" type="stmt"/>
197+
<line num="127" count="5719" type="stmt"/>
198+
<line num="128" count="5719" type="stmt"/>
199+
<line num="131" count="77" type="stmt"/>
200+
<line num="132" count="77" type="stmt"/>
201+
<line num="133" count="77" type="stmt"/>
202+
<line num="134" count="77" type="stmt"/>
203+
<line num="136" count="77" type="stmt"/>
202204
<line num="140" count="2" type="cond" truecount="1" falsecount="1"/>
203205
<line num="142" count="2" type="stmt"/>
204206
<line num="144" count="2" type="stmt"/>

0 commit comments

Comments
 (0)