Comments (4)
Hey @zwacky !
I never considered Alephbet for usage on the server, although I guess in theory it should work there as well.
I don't remember precisely, but I think store wasn't so maintained and basil seemed more flexible with different fallback options etc? At my company, we used it, so I thought it makes sense to also use it with Alephbet.
@joker-777 any thoughts ?
from alephbet.
Oh, and I completely forgot but you can actually provide your own storage adapter. See https://github.com/alephbet/alephbet#custom-storage-adapter
This means you can still use the latest Alephbet, but just provide a storage adapter using whatever you want ;-)
Nevertheless, it might be worth looking at a different default library. Suggestions welcome
from alephbet.
Hey gingerlime, thanks for your reply!
We already use custom storage adapters—actually we use pretty much all features that alephbet provides 😊.
To give a bit more context in terms of SSR:
We don't use alephbet in the server directly, it's only used in the client after hydration.
But we use TS typings in various places directly from alephbet (e.g. AlephBet.Goal
). That makes it part of the linting/compilation and it stumbles on the window
references coming from basil.js (https://github.com/Wisembly/basil.js/blob/master/build/basil.js search for window).
^ This screams refactoring, but I still have so many other fires to fight. That's why I downgraded to 0.17.3 for now to unstuck myself on this particular matter.
from alephbet.
Thanks for the added context. I'm definitely open to a better solution. Maybe simply replacing it with direct localStorage
calls and skip the abstraction completely. If you have any suggestions or want to contribute a PR, that would be great.
from alephbet.
Related Issues (20)
- Any reason you haven't wired this up to Mixpanel? HOT 6
- use fetch + keepalive HOT 9
- Raise Error object instead of string HOT 6
- [Question] Can I set/change the traffic allocation between variations? HOT 6
- user-based / cross-device tracking
- Store.js dependency is out of date (causing Alephbet to fail in Safari private mode) HOT 3
- Cannot find `lodash.custom` when used with mocha HOT 5
- Multiple tracking back-ends? HOT 3
- minified version has similar size to non-minified ... HOT 1
- How to connect an external experiment with goals in alephbet? HOT 9
- Is it possible to force Alephbet to use a specific variant in development? HOT 2
- Events not posted to GA HOT 2
- link better the goal and the experiment HOT 3
- Uncaught TypeError: AlephBet.Goal is not a constructor HOT 2
- Uncaught TypeError: localStorage.set is not a function HOT 4
- _alephbet.default.LamedAdapter is not a constructor HOT 5
- Publish Node.js automatically when releasing on Github
- Test support? HOT 3
- trigger behaviour
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 alephbet.