fast icon indicating copy to clipboard operation
fast copied to clipboard

feat: add SSR DesignToken strategy

Open nicholasrice opened this issue 3 years ago • 0 comments

🙋 Feature Request

Implement a DesignToken resolution strategy that correctly resolves DesignTokenNode hierarchies in SSR environments.

🤔 Expected Behavior

😯 Current Behavior

The default resolution strategy implemented in DesignToken uses manual DOM walking to resolve DesignTokenNode hierarchies. This is more performant than Event emission, however it leverages APIs that are not implemented in SSR and the custom element hierarchies it relies on do not exist in SSR.

💁 Possible Solution

An Event based resolution strategy should be developed. SSR supports event emission and listening, so events can be used to resolve DesignTokenNode hierarchies.

🔦 Context

💻 Examples

nicholasrice avatar Aug 09 '22 20:08 nicholasrice