Overview of @plasmicapp/loader-splits
master@plasmicapp/loader-splits is a library of utilities designed to instrument A/B tests and segmentation within Plasmic.
repository·master·Indexed 27 days ago
https://github.com/plasmicapp/plasmicAn open-source visual builder that integrates with existing codebases, allowing developers to use custom React components within a visual editor. It serves as a design tool and headless CMS, providing SDKs for Next.js, Gatsby, and React, as well as a CLI for project synchronization and a 'create-plasmic-app' utility for project initialization.
@plasmicapp/loader-fetcher library is a specialized utility designed for fetching component data from Plasmic. It is used to retrieve the necessary data structures and configurations required to render Plasmic components within an application.@plasmicapp/query is an isomorphic, component-level data-fetching library built on top of swr. It allows you to fetch data within React components in both client-side and server-side environments.
Key capabilities:
getStaticProps or getServerSideProps (in Next.js Pages Router).@plasmicapp/prepass, it enables Suspense-style data prefetching on the server, ensuring data is available before the component renders on the client.Important Constraints:
@plasmicapp/auth-api library is used for handling authentication flows within Plasmic applications.@plasmicapp/react-web package serves as the runtime for code generated by Plasmic, a visual builder for React. It provides the necessary functions and type definitions required by generated presentational code to function correctly within a React application.@plasmicapp/host package provides the necessary functions and type definitions to allow your existing code components to be used within Plasmic Studio. This is a key part of 'application hosting,' allowing you to bridge your codebase with Plasmic's visual design environment.@plasmicapp/loader-angular package is deprecated. Development efforts are currently focused on React-based integrations.@plasmicapp/watcher package provides a utility function designed to watch for changes in Plasmic designs using socketio. This is typically used in development environments to trigger rebuilds or updates when a designer makes changes in the Plasmic app.plasmicpkgs are shared packages designed to allow developers to use custom code—such as components and functions—directly within the Plasmic platform.enquire.js specifically designed to work with Server-Side Rendering (SSR). Standard enquire.js exports new MediaQueryDispatch(), which causes crashes in server environments. This fork prevents those crashes by exporting undefined when running on a server, allowing your application to boot safely in Node.js or other non-browser environments.