Comments (6)
electron 1.8.8 is work for this
from react-uwp.
I found the electron boilerplate is not work with , other components are working.
Is any any tips for debugging these to components?
Electron Boilerplate:
https://github.com/mjangir/reactron
https://github.com/electron-react-boilerplate/electron-react-boilerplate
thanks.
from react-uwp.
Hi, Myxvisual:
I found there caused the and not created out:
when create each primaryCommands elements, there compared the type, when i printed out each elem,
React.Children.toArray(primaryCommands).filter(
function (child) {
console.log("<CommandBar> child:", child.type, AppBarButton_1.default, child.type == AppBarButton_1.default, child.type == AppBarSeparator_1.default);
return (child.type === AppBarButton_1.default || child.type === AppBarSeparator_1.default);
}
);
the result show the two function is same but i don't have idea why it's not equal(even use '=='):
child: ƒ AppBarButtonButton() {
return _super !== null && _super.apply(this, arguments) || this;
} ƒ AppBarButtonButton() {
return _super !== null && _super.apply(this, arguments) || this;
} false false
So i temporarily to change the compare variable to child.type.name and AppBarButton_1.default.name:
React.Children.toArray(primaryCommands).filter(function (child) { return (child.type.name === AppBarButton_1.default.name || child.type.name === AppBarSeparator_1.default.name); })
Do you know the reason?
from react-uwp.
Still found the same issues in
SplitView.prototype.render function:
Use function name to determine the component instead:
React.Children.forEach(children, function (child, index) {
if (child.type.name === SplitViewPane_1.default.name) {
splitViewPanes.push(React.cloneElement(child, {
...
from react-uwp.
Hi, @PitterL sorry for delay in reply, I guess your project has multiple node_modules, which causes the referenced js files to be different.
from react-uwp.
Actual it is that, the boilerplate use two-package-structure which has get two node_modules
https://www.electron.build/tutorials/two-package-structure
Thank you, Myxvisual .
from react-uwp.
Related Issues (20)
- ???
- [DOCS]Scrolling laggy on mobile
- Keep getting exception 'document is not defined'
- Is this repo still being maintained?
- Any table component ?
- Toast component does not work
- It seems that there are some little bugs about theme.
- The tooltip component may cause some unhappiness
- Got a conflict error with react@>=17.0.0 while installing
- StyleManager always set style in document.head HOT 2
- desktopBackgroundImage render issue in electron two package structure HOT 1
- Where is ReactUWP.ThemeType definition HOT 3
- SplitViewCommand may lose attributes in create
- onChangeTime callback on TimePicker does not work
- How to show Toast programmatically?
- About source code of icon component
- Uncaught TypeError: Cannot convert undefined or null to object - When trying to change theme using local state(Toggling between 'dark' and 'light' ).
- needGenerateAcrylic={false} on SSR
- 组件不太流畅,有点卡顿
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-uwp.