Comments (7)
I think it is a rust analyzer issue, which currently does not seem to support the config files for subcrates.
from yewdux.
Yes, trunk builds fine but rust analyzer complains.
from yewdux.
Global context is disabled for non-wasm targets. If you don't need SSR support, you can set the default build target for your project.
If you do need SSR support, please review the docs
from yewdux.
We ran into the same issue even with targeting wasm32-unknown-unkown
. We had to turn on the doctests feature to get it to work. Adding yewdux = { version = "0.10.0", features = ['doctests']}
got us past this issue, but it does seem odd that it's gated behind that particular feature.
from yewdux.
@accorded-jay that feature is for internal use, and shouldn't be necessary. Can you share your project, or a minimal reproduction?
Using global in non-wasm targets can introduce unexpected behavior, and is not recommended.
from yewdux.
I have encountered the same issue while writing a very much WASM yew lil thing.
from yewdux.
@LucaCappelletti94 This might be happening when building the whole project, which probably defaults to your native target. You should be able to compile by specifying the target for your wasm crate only. However, I can see how this might get cumbersome.
Will see about a qol improvement here
from yewdux.
Related Issues (20)
- anymap versions < 1.0-beta-X are unsound; the crate seems unmaintained HOT 3
- Confusion on make_mut tip on documentation HOT 2
- Cannot move out of ... HOT 2
- It seems yewdux not working on safari HOT 1
- Have a way to inject listeners into derived `Store` implementation HOT 5
- Feature Suggestion: history/undo/redo HOT 2
- listener macro injection is documented but not released HOT 2
- Component Not Updating when State Changes
- Unable to set and retrieve state. HOT 1
- RUSTSEC-2021-0065: anymap is unmaintained HOT 1
- Does the store get dropped when a component dismounts? HOT 2
- in yew version = "0.21.0" and yewdux = "0.9.3" error will generated HOT 3
- Questions: Cannot use a selector on a String HOT 3
- Documentation: Clarify how the store can be accessed outside of a yew component HOT 1
- yewdux relies on yew via git; always pointing at newest version HOT 1
- Large states and storage HOT 2
- Support wasm only functions via macro [doc-test] HOT 1
- Please bump an example of using yewdux on struct component
- How to delete a store
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 yewdux.