Comments (6)
Good catch! Thanks for reporting it.
I'll try to fix that as soon as possible.
from iconify.
Fixed in @iconify/[email protected]
.
Couldn't figure out how to unit test it, so it comes without unit tests. However, in react-demo
package I've added visual test to make sure it works correctly.
Unfortunately couldn't figure out how to pass it from class to child component, so @iconify/react-with-api
doesn't support references yet. I'll try to figure it out.
from iconify.
Great, thanks 👍
from iconify.
I'm really struggling with implementing this with API package.
Problem is, component could be rendered instantly or it could render asynchronously, which means render()
might return createElement('span', props)
or it could return null
. Additionally I'm very ill right now, my brain barely functions, which makes it very hard to come up with solutions.
If you have an idea on how to implement it, please help. Without going into Iconify internal functionality, it just needs to be a component could render synchronously and asynchronously (depending if data has loaded) and passes reference to generated svg (content can be anything, I can adapt code for svg). Currently component is using classes, but using hooks will work fine too (I'm using class because I'm not familiar with hooks enough to create stable component).
from iconify.
Fixed in 3.0.0-dev (currently available in react-restructure
branch of this repo). Now API package also supports references, which required full rewrite of component.
from iconify.
Awesome, thank you !
from iconify.
Related Issues (20)
- Hey I found an Issue !! HOT 2
- iconify/vue 使用addCollection加载图标集 还会向远程服务器发起请求吗 我想就将图标集打包到项目中
- Release of icons with android library HOT 8
- @iconify/tailwindcss redundant code HOT 16
- 在uniapp中怎么使用unocss+iconify实现图标展示啊? HOT 1
- 在uniapp中显示不出来图标 HOT 1
- @iconify/tailwind can't use underline HOT 3
- Opacity on icons HOT 1
- Feat: Type definition for all icon names HOT 1
- Icon toggles visibility when scrolled in/out of viewport - observer="false" does not work? HOT 7
- `@iconify-icon/react` prop `observe` didn't work HOT 2
- finding the "real corner" of an svg HOT 2
- Prefers reduced motion with transitions HOT 6
- I can't tell why is this happening HOT 9
- Npm install broken for 1.0.0 HOT 1
- Allows adding additional `attributes` when using `getIconCSS` HOT 5
- [BUG] Class extends value undefined is not a constructor or null HOT 2
- Plugin generates a lot of repeated CSS code HOT 2
- Unexpected element: <text> HOT 2
- Iconset request: Fluentui Emoji HOT 1
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 iconify.